public static class BooleanIterators.UnmodifiableBidirectionalIterator extends java.lang.Object implements BooleanBidirectionalIterator
Constructor and Description |
---|
UnmodifiableBidirectionalIterator(BooleanBidirectionalIterator 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 |
hasPrevious()
Returns whether there is a previous element.
|
boolean |
nextBoolean()
Returns the next element as a primitive type.
|
boolean |
previousBoolean()
Returns the previous element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
back, previous, skip
next
public UnmodifiableBidirectionalIterator(BooleanBidirectionalIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Boolean>
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface BidirectionalIterator<java.lang.Boolean>
ListIterator.hasPrevious()
public boolean nextBoolean()
BooleanIterator
nextBoolean
in interface BooleanIterator
Iterator.next()
public boolean previousBoolean()
BooleanBidirectionalIterator
previousBoolean
in interface BooleanBidirectionalIterator
ListIterator.previous()
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>