public final class BooleanArrayIterator extends Object implements Iterator<Boolean>
BooleanArrayIterator is a Iterator that iterates over a
given boolean[].
Calling remove() sets the array to
false at the index that corresponds to the last value returned by
next().
| Constructor and Description |
|---|
BooleanArrayIterator(boolean[] values)
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[] values)
boolean[].
If the given boolean[] is null, the new
BooleanArrayIterator will behave, as if an empty boolean[] has
been given.
values - The boolean[] to iterate over.Copyright © 2015 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.