protected class AbsContext.WrappedEnumeration
extends java.lang.Object
implements javax.naming.NamingEnumeration
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()
Tests if this enumeration contains more elements.
|
java.lang.Object |
next()
Retrieves the next element in the enumeration.
|
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration
object has at least one more element to provide.
|
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.public boolean hasMore() throws javax.naming.NamingException
hasMore
in interface javax.naming.NamingEnumeration
javax.naming.NamingException
- If a naming exception is encountered while
attempting to determine whether there is another element in
the enumeration.public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
public java.lang.Object next()
next
in interface javax.naming.NamingEnumeration
Enumeration.nextElement()
public void close() throws javax.naming.NamingException
close
in interface javax.naming.NamingEnumeration
javax.naming.NamingException
- If a naming exception is encountered while
closing the enumeration.