oracle.bali.share.collection
Class EveryOtherEnumeration
java.lang.Object
|
+--oracle.bali.share.collection.EveryOtherEnumeration
- All Implemented Interfaces:
- java.util.Enumeration
- public class EveryOtherEnumeration
- extends java.lang.Object
- implements java.util.Enumeration
Enumeration that returns every other value in an array, starting with a
start index and moving backwards. This is enumeration is especially useful
when enumerating arrays of key value pairs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EveryOtherEnumeration
public EveryOtherEnumeration(java.lang.Object[] array)
EveryOtherEnumeration
public EveryOtherEnumeration(java.lang.Object[] array,
int startIndex)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration