public class NamingEnumerationImpl<T> extends Object implements NamingEnumeration<T>
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T> |
iterator
Underlying collection.
|
| Constructor and Description |
|---|
NamingEnumerationImpl(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() |
public NamingEnumerationImpl(Collection<T> entries)
public T next() throws NamingException
next in interface NamingEnumeration<T>NamingExceptionpublic boolean hasMore()
throws NamingException
hasMore in interface NamingEnumeration<T>NamingExceptionpublic void close()
throws NamingException
close in interface NamingEnumeration<T>NamingExceptionpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<T>public T nextElement()
nextElement in interface Enumeration<T>Copyright © 2016 JBoss by Red Hat. All rights reserved.