org.erights.e.elib.util
Class DynamicMapEnumeration
java.lang.Object
|
+--org.erights.e.elib.util.DynamicMapEnumeration
- All Implemented Interfaces:
- Enumeration
- public class DynamicMapEnumeration
- extends Object
- implements Enumeration
Untamed: An Enumeration of the elements of a DynamicMap object.
Method Summary |
void |
addElems(ConstList elems)
Enabled: Add elements at the current position. |
boolean |
hasMoreElements()
Enabled: Return true if there are any more elements remaining to be enumerated. |
Object |
nextElement()
Enabled: Return the next element in the collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myCollection
private final DynamicMap myCollection
myCurrentPosition
private int myCurrentPosition
DynamicMapEnumeration
public DynamicMapEnumeration(DynamicMap collection)
- Enabled: Construct a new Enumeration based on a given DynamicMap.
addElems
public void addElems(ConstList elems)
- Enabled: Add elements at the current position.
hasMoreElements
public boolean hasMoreElements()
- Enabled: Return true if there are any more elements remaining to be enumerated.
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.
nextElement
public Object nextElement()
- Enabled: Return the next element in the collection.
- Specified by:
nextElement
in interface Enumeration
- Returns:
- the next element of this enumeration.
comments?