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