edu.isi.stella.javalib
Class StellaIterator

java.lang.Object
  extended by edu.isi.stella.javalib.StellaIterator
All Implemented Interfaces:
java.util.Iterator

public class StellaIterator
extends java.lang.Object
implements java.util.Iterator

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


Field Summary
protected  Iterator iter
           
protected  boolean moreP
           
 
Constructor Summary
StellaIterator(Iterator theIter)
          Creates a new Java Iterator that will range over the values in the Stella Iterator.
 
Method Summary
 boolean hasNext()
          Tests if more elements are available.
 java.lang.Object next()
          Returns the next Stella_Object provided by the encapsulated Iterator.
 void remove()
          Remove is unsupported for StellaIterators.
 
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

StellaIterator

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

Parameters:
theIter - An instance of a Stella Iterator.
Method Detail

hasNext

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

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

next

public java.lang.Object next()
Returns the next Stella_Object provided by the encapsulated Iterator.

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

remove

public void remove()
Remove is unsupported for StellaIterators.

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException