public interface BooleanBidirectionalIterator extends BooleanIterator, ObjectBidirectionalIterator<java.lang.Boolean>
ObjectBidirectionalIterator to reduce (un)boxing| Modifier and Type | Method and Description |
|---|---|
default int |
back(int amount)
Reverses the Given amount of elements if possible.
|
boolean |
hasPrevious()
Returns true if the Iterator has a Previous element
|
default java.lang.Boolean |
previous()
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
previousBoolean()
Returns the Previous element of the iterator.
|
default int |
skip(int amount)
Skips the Given amount of elements if possible.
|
forEachRemaining, forEachRemaining, next, nextBooleanboolean hasPrevious()
hasPrevious in interface ObjectBidirectionalIterator<java.lang.Boolean>boolean previousBoolean()
java.util.NoSuchElementException - if the iteration has no more elements@Deprecated default java.lang.Boolean previous()
This default implementation delegates to the corresponding type-specific function.
previous in interface ObjectBidirectionalIterator<java.lang.Boolean>default int skip(int amount)
skip in interface BooleanIteratorskip in interface ObjectIterator<java.lang.Boolean>amount - the amount of elements that should be skippeddefault int back(int amount)
back in interface ObjectBidirectionalIterator<java.lang.Boolean>amount - the amount of elements that should be reversed