public static class BooleanIterators.UnmodifiableListIterator extends java.lang.Object implements BooleanListIterator
Constructor and Description |
---|
UnmodifiableListIterator(BooleanListIterator 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.
|
int |
nextIndex() |
boolean |
previousBoolean()
Returns the previous element as a primitive type.
|
int |
previousIndex() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, next, previous, remove, set, set
back, skip
public UnmodifiableListIterator(BooleanListIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Boolean>
hasNext
in interface java.util.ListIterator<java.lang.Boolean>
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface BidirectionalIterator<java.lang.Boolean>
hasPrevious
in interface java.util.ListIterator<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 int nextIndex()
nextIndex
in interface java.util.ListIterator<java.lang.Boolean>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<java.lang.Boolean>
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>