|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIteratorExample.AnIterator
Inner iterator class that defines the iterator instance returned by this.iterator.
Constructor Summary | |
protected |
IteratorExample.AnIterator()
|
Method Summary | |
boolean |
hasNext()
Return true if there are items left to generate. |
java.lang.Object |
next()
Return the next item as an Integer, throwing NoSuchElementException when no more. |
void |
remove()
Remove does nothing here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected IteratorExample.AnIterator()
Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |