jds.util
Class IndexedEnumeration
java.lang.Object
|
+--jds.util.IndexedEnumeration
- public class IndexedEnumeration
- extends java.lang.Object
- implements java.util.Enumeration
IndexedEnumeration - enumeration for indexed collections;
for use with book
Classic Data Structures
in Java
by Timothy A Budd,
published by Addison-Wesley, 2001.
- See Also:
Indexed
Method Summary |
boolean |
hasMoreElements()
see if enumeration should continue |
java.lang.Object |
nextElement()
get next element in enumeration |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
IndexedEnumeration
public IndexedEnumeration(Indexed d)
- initialize newly created IndexedEnumeration
- Parameters:
d
- collection to enumerate over
hasMoreElements
public boolean hasMoreElements()
- see if enumeration should continue
- Specified by:
- hasMoreElements in interface java.util.Enumeration
- Returns:
- true if enumeration has at least one more element
nextElement
public java.lang.Object nextElement()
- get next element in enumeration
- Specified by:
- nextElement in interface java.util.Enumeration
- Returns:
- value of next element in enumeration