edu.isi.stella.javalib
Class ConsEnumeration

java.lang.Object
  extended by edu.isi.stella.javalib.ConsEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class ConsEnumeration
extends java.lang.Object
implements java.util.Enumeration

An Enumeration for Stells Conses. This class allows iteration over a Stella Cons using the java.util.Enumeration interface.


Field Summary
protected  Cons cons
           
 
Constructor Summary
ConsEnumeration(Cons theCons)
          Creates a new Enumeration that will range over the values in the Stella Cons.
 
Method Summary
 boolean hasMoreElements()
          Tests if more elements are available.
 java.lang.Object nextElement()
          Returns the next Stella_Object contained in the Cons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cons

protected Cons cons
Constructor Detail

ConsEnumeration

public ConsEnumeration(Cons theCons)
Creates a new Enumeration that will range over the values in the Stella Cons.

Parameters:
theCons - An instance of a Stella Cons.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Tests if more elements are available.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if at least one more element is available.

nextElement

public java.lang.Object nextElement()
Returns the next Stella_Object contained in the Cons.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
the next Stella_Object in the Cons.