java.lang.Object
cloud.piranha.naming.impl.DefaultNamingEnumeration
- All Implemented Interfaces:
Enumeration<NameClassPair>
,NamingEnumeration<NameClassPair>
The default NamingEnumeration.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
ConstructorDescriptionDefaultNamingEnumeration
(Collection<NameClassPair> nameClassPairs) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
DefaultNamingEnumeration
Constructor.- Parameters:
nameClassPairs
- the name class pairs.
-
-
Method Details
-
close
Close the enumeration.- Specified by:
close
in interfaceNamingEnumeration<NameClassPair>
- Throws:
NamingException
- when a naming error occurs.
-
hasMore
Do we have more elements?- Specified by:
hasMore
in interfaceNamingEnumeration<NameClassPair>
- Returns:
- true if we do, false otherwise.
- Throws:
NamingException
- when a naming error occurs.
-
hasMoreElements
public boolean hasMoreElements()Do we have more elements?- Specified by:
hasMoreElements
in interfaceEnumeration<NameClassPair>
- Returns:
- true if we do, false otherwise.
-
next
Get the next element.- Specified by:
next
in interfaceNamingEnumeration<NameClassPair>
- Returns:
- the next element.
- Throws:
NamingException
- when a naming error occurs.
-
nextElement
Get the next element.- Specified by:
nextElement
in interfaceEnumeration<NameClassPair>
- Returns:
- the next element.
-