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