|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.isi.stella.javalib.ConsIterator
public class ConsIterator
An Iterator for Stells Conses. This class allows iteration over a Stella Cons using the java.util.Iterator interface.
| Field Summary | |
|---|---|
protected Cons |
cons
|
| Constructor Summary | |
|---|---|
ConsIterator(Cons theCons)
Creates a new Iterator that will range over the values in the Stella Cons. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Tests if more elements are available. |
java.lang.Object |
next()
Returns the next Stella_Object contained in the Cons. |
void |
remove()
Remove is unsupported for ConsIterators. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Cons cons
| Constructor Detail |
|---|
public ConsIterator(Cons theCons)
theCons - An instance of a Stella Cons.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||