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