T
- The element in the enumerationpublic class EmptyEnumeration<T> extends Object implements NamingEnumeration<T>
Constructor and Description |
---|
EmptyEnumeration() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasMore()
Always returns false.
|
boolean |
hasMoreElements()
Always return false.
|
T |
next()
Always throws NoSuchElementException.
|
T |
nextElement()
Always throws NoSuchElementException.
|
public EmptyEnumeration()
public void close()
close
in interface NamingEnumeration<T>
NamingEnumeration.close()
public boolean hasMore() throws NamingException
hasMore
in interface NamingEnumeration<T>
NamingException
NamingEnumeration.hasMore()
public T next() throws NamingException
next
in interface NamingEnumeration<T>
NamingException
NamingEnumeration.next()
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<T>
Enumeration.hasMoreElements()
public T nextElement()
nextElement
in interface Enumeration<T>
Enumeration.nextElement()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.