Payload - The payload type.public final class LongSparseArrayIterator<Payload> extends AbstractProtectedIterator<Entry<Long,Payload>>
LongSparseArrayIterator is an AbstractProtectedIterator that iterates over a given
LongSparseArray.| Constructor and Description |
|---|
LongSparseArrayIterator(LongSparseArray<? extends Payload> array)
Creates a new
LongSparseArrayIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Entry<Long,Payload> |
next() |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic LongSparseArrayIterator(LongSparseArray<? extends Payload> array) throws IllegalArgumentException
LongSparseArrayIterator.array - The LongSparseArray to iterate over.IllegalArgumentException - If the given LongSparseArray is null.public boolean hasNext()
public Entry<Long,Payload> next() throws NoSuchElementException
NoSuchElementException