public class NamingEnumerationImpl<T>
extends java.lang.Object
implements javax.naming.NamingEnumeration<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.Iterator<T> |
iterator
Underlying collection.
|
Constructor and Description |
---|
NamingEnumerationImpl(java.util.Collection<T> entries) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this enumeration.
|
boolean |
hasMore()
Determines whether there are any more elements in the enumeration.
|
boolean |
hasMoreElements() |
T |
next()
Retrieves the next element in the enumeration.
|
T |
nextElement() |
protected java.util.Iterator<T> iterator
public NamingEnumerationImpl(java.util.Collection<T> entries)
public T next() throws javax.naming.NamingException
next
in interface javax.naming.NamingEnumeration<T>
javax.naming.NamingException
public boolean hasMore() throws javax.naming.NamingException
hasMore
in interface javax.naming.NamingEnumeration<T>
javax.naming.NamingException
public void close() throws javax.naming.NamingException
close
in interface javax.naming.NamingEnumeration<T>
javax.naming.NamingException
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration<T>