public static class BooleanIterators.UnmodifiableIterator extends java.lang.Object implements BooleanIterator
Constructor and Description |
---|
UnmodifiableIterator(BooleanIterator i) |
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(BooleanConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Boolean> action)
Deprecated.
|
boolean |
hasNext() |
boolean |
nextBoolean()
Returns the next element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
next, skip
public UnmodifiableIterator(BooleanIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Boolean>
public boolean nextBoolean()
BooleanIterator
nextBoolean
in interface BooleanIterator
Iterator.next()
public void forEachRemaining(BooleanConsumer action)
BooleanIterator
forEachRemaining
in interface BooleanIterator
forEachRemaining
in interface java.util.PrimitiveIterator<java.lang.Boolean,BooleanConsumer>
action
- the action to be performed for each element.Iterator.forEachRemaining(java.util.function.Consumer)
@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Boolean> action)
BooleanIterator
forEachRemaining
in interface BooleanIterator
forEachRemaining
in interface java.util.Iterator<java.lang.Boolean>