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>
NamingException
public boolean hasMore() throws NamingException
hasMore
in interface NamingEnumeration<T>
NamingException
public void close() throws NamingException
close
in interface NamingEnumeration<T>
NamingException
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<T>
public T nextElement()
nextElement
in interface Enumeration<T>
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.