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

Constructor Summary
IndexedEnumeration(Indexed d)
          initialize newly created IndexedEnumeration
 
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
 

Constructor Detail

IndexedEnumeration

public IndexedEnumeration(Indexed d)
initialize newly created IndexedEnumeration
Parameters:
d - collection to enumerate over
Method Detail

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