public class RecyclableNamingEnumeration<E> extends Object implements NamingEnumeration<E>
Modifier and Type | Field and Description |
---|---|
protected Vector<E> |
entries
Entries.
|
protected Enumeration<E> |
enumeration
Underlying 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>
NamingException
public boolean hasMore() throws NamingException
hasMore
in interface NamingEnumeration<E>
NamingException
public void close() throws NamingException
close
in interface NamingEnumeration<E>
NamingException
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<E>
public E nextElement()
nextElement
in interface Enumeration<E>
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.