|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.lang.XCollectionIterator<T>
public final class XCollectionIterator<T>
This class represents an iterator over a XCollection
.
Iterations are thread-safe if the collections records are not removed
or inserted at arbitrary position (appending/prepending is fine).
This class was based on collections code from http://javolution.org, but modified for use outside of realtime jvms.
Method Summary | ||
---|---|---|
boolean |
hasNext()
|
|
T |
next()
|
|
void |
remove()
|
|
XCollectionIterator<T> |
toFirst()
Resets the iterator to the first element. |
|
static
|
valueOf(XCollection<T> collection)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> XCollectionIterator<T> valueOf(XCollection<T> collection)
public XCollectionIterator<T> toFirst()
XIterator
toFirst
in interface XIterator<T>
public boolean hasNext()
hasNext
in interface Iterator<T>
public T next()
next
in interface Iterator<T>
public void remove()
remove
in interface Iterator<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |