|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.trigonic.jrobotx.util.AbstractIterator<E>
public abstract class AbstractIterator<E>
An abstract Iterator. This implementation treats null as a marker and cannot support iteration sequences
that can return it as a valid value.
| Constructor Summary | |
|---|---|
AbstractIterator()
|
|
| Method Summary | |
|---|---|
protected abstract E |
getNext()
Implement this to return the next value in the iteration, or null if none remain. |
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
protected void |
removeLast(E last)
Override this to support remove(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractIterator()
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>protected abstract E getNext()
protected void removeLast(E last)
remove().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||