Package com.portal.pcm
Class AssocArray.PairEnumeration
java.lang.Object
com.portal.pcm.AssocArray.PairEnumeration
- All Implemented Interfaces:
Enumeration<Object>
- Direct Known Subclasses:
SparseArray.SAPairEnumeration
- Enclosing class:
AssocArray
An implementation of
Enumeration
that iterates over pairs of objects.
This class provides a way to enumerate over a collection of AssocArray.Pair
objects.
The PairEnumeration
class maintains an internal index to keep track of the
current position in the enumeration. It assumes that there are corresponding lists of
keys and values from which it creates AssocArray.Pair
objects to return.
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<Object>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<Object>
-
nextPair
Returns the next pair in the enumeration.This method retrieves the next element in the enumeration and casts it to a
AssocArray.Pair
.- Returns:
- The next
AssocArray.Pair
in the enumeration.
-