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.


Field Summary
private  DynamicMap myCollection
           
private  int myCurrentPosition
           
 
Constructor Summary
DynamicMapEnumeration(DynamicMap collection)
          Enabled: Construct a new Enumeration based on a given DynamicMap.
 
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
 
Methods inherited from interface java.util.Enumeration
asList, iterate
 

Field Detail

myCollection

private final DynamicMap myCollection

myCurrentPosition

private int myCurrentPosition
Constructor Detail

DynamicMapEnumeration

public DynamicMapEnumeration(DynamicMap collection)
Enabled: Construct a new Enumeration based on a given DynamicMap.

Method Detail

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?