public class RecyclableNamingEnumeration<E> extends Object implements NamingEnumeration<E>
| Modifier and Type | Field and Description | 
|---|---|
| protected Vector<E> | entriesEntries. | 
| protected Enumeration<E> | enumerationUnderlying enumeration. | 
| Constructor and Description | 
|---|
| RecyclableNamingEnumeration(Vector<E> 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() | 
| E | next()Retrieves the next element in the enumeration. | 
| E | nextElement() | 
protected Enumeration<E> enumeration
public E next() throws NamingException
next in interface NamingEnumeration<E>NamingExceptionpublic boolean hasMore()
                throws NamingException
hasMore in interface NamingEnumeration<E>NamingExceptionpublic void close()
           throws NamingException
close in interface NamingEnumeration<E>NamingExceptionpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<E>public E nextElement()
nextElement in interface Enumeration<E>Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.