public static class BooleanIterators.UnmodifiableBidirectionalIterator extends AbstractBooleanBidirectionalIterator
| Constructor and Description |
|---|
UnmodifiableBidirectionalIterator(BooleanBidirectionalIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
boolean |
nextBoolean()
Returns the next element as a primitive type.
|
boolean |
previousBoolean()
This implementation delegates to
AbstractBooleanBidirectionalIterator.previous(). |
back, previousnext, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnext, skipskipforEachRemaining, removepublic UnmodifiableBidirectionalIterator(BooleanBidirectionalIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public boolean nextBoolean()
AbstractBooleanIteratorThis implementation delegates to the corresponding generic method.
nextBoolean in interface BooleanIteratornextBoolean in class AbstractBooleanIteratorIterator.next()public boolean previousBoolean()
AbstractBooleanBidirectionalIterator
This implementation delegates to AbstractBooleanBidirectionalIterator.previous().
previousBoolean in interface BooleanBidirectionalIteratorpreviousBoolean in class AbstractBooleanBidirectionalIteratorListIterator.previous()