public static class BooleanIterators.UnmodifiableListIterator extends Object implements BooleanListIterator
| Modifier and Type | Field and Description |
|---|---|
protected BooleanListIterator |
i |
| Constructor and Description |
|---|
UnmodifiableListIterator(BooleanListIterator 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.
|
int |
nextIndex() |
boolean |
previousBoolean()
Returns the previous element as a primitive type.
|
int |
previousIndex() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, next, previous, remove, set, setback, skipforEachRemaining, forEachRemainingprotected final BooleanListIterator i
public UnmodifiableListIterator(BooleanListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Boolean>hasPrevious in interface ListIterator<Boolean>ListIterator.hasPrevious()public boolean nextBoolean()
BooleanIteratornextBoolean in interface BooleanIteratorIterator.next()public boolean previousBoolean()
BooleanBidirectionalIteratorpreviousBoolean in interface BooleanBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface ListIterator<Boolean>public int previousIndex()
previousIndex in interface ListIterator<Boolean>Copyright © 2020. All rights reserved.