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