edu.isi.stella.javalib
Class StellaEnumeration

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

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

An Enumeration for Stella Iterators. Accepts a Stella Iterator and allows access to it using the standard java.util.Enumeration interface.


Field Summary
protected  Iterator iter
           
protected  boolean moreP
           
 
Constructor Summary
StellaEnumeration(Iterator theIter)
          Creates a new Enumeration that will range over the values in the Stella Iterator.
 
Method Summary
 boolean hasMoreElements()
          Tests if more elements are available.
 java.lang.Object nextElement()
          Returns the next Stella_Object provided by the encapsulated Iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iter

protected Iterator iter

moreP

protected boolean moreP
Constructor Detail

StellaEnumeration

public StellaEnumeration(Iterator theIter)
Creates a new Enumeration that will range over the values in the Stella Iterator.

Parameters:
theIter - An instance of a Stella Iterator.
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 provided by the encapsulated Iterator.

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