|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.collections.CopiedIterator
Sucks a copy of an iterator into it. It consumes the iterator when it copys it. This is useful when you want to make the walking of the real iterator as quick as possible.
| Constructor Summary | |
CopiedIterator(java.util.Iterator itr)
|
|
| Method Summary | |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CopiedIterator(java.util.Iterator itr)
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iterator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||