public final class XCollectionIterator<T> extends Object implements XIterator<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.
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
XCollectionIterator<T> |
toFirst()
Resets the iterator to the first element.
|
static <T> XCollectionIterator<T> |
valueOf(XCollection<T> collection) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static <T> XCollectionIterator<T> valueOf(XCollection<T> collection)
public XCollectionIterator<T> toFirst()
XIteratorCopyright © 2019 Neeve Research, LLC. All Rights Reserved.