public final class BooleanArrayIterator extends Object implements ProtectedIterator<Boolean>
| Constructor and Description |
|---|
BooleanArrayIterator(boolean[] array)
Creates a new BooleanArrayIterator that iterates over the
given
boolean[]. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Boolean |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic BooleanArrayIterator(boolean[] array)
throws IllegalArgumentException
boolean[].array - The boolean[] to iterate over.IllegalArgumentException - If the given boolean[] is null.public Boolean next() throws NoSuchElementException
next in interface Iterator<Boolean>NoSuchElementExceptionpublic void remove()
throws UnsupportedOperationException
remove in interface Iterator<Boolean>UnsupportedOperationExceptionCopyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.