public abstract class AbstractBooleanListIterator extends AbstractBooleanBidirectionalIterator implements BooleanListIterator
This class provides trivial type-specific implementations of
set() and
add() which throw an
UnsupportedOperationException. For primitive types, it also provides
a trivial implementation of set()
and add() that just invokes the
type-specific one.
ListIterator| Modifier and Type | Method and Description |
|---|---|
void |
add(boolean k)
Inserts the specified element into the list (optional operation).
|
void |
add(Boolean ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
void |
set(boolean k)
Replaces the last element returned by
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation). |
void |
set(Boolean ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previous, previousBooleannext, nextBoolean, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, hasPrevious, next, nextIndex, previous, previousIndex, removeback, previous, previousBooleannextBoolean, skipskiphasPreviousforEachRemainingpublic void set(boolean k)
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface BooleanListIteratork - the element used to replace the last element returned.ListIterator.set(Object)public void add(boolean k)
ListIterator.next(), if any, and after the element that would be returned by
ListIterator.previous(), if any.
This implementation always throws an
UnsupportedOperationException.
add in interface BooleanListIteratork - the element to insert.ListIterator.add(Object)@Deprecated public void set(Boolean ok)
This implementation delegates to the corresponding type-specific method.
set in interface BooleanListIteratorset in interface ListIterator<Boolean>@Deprecated public void add(Boolean ok)
This implementation delegates to the corresponding type-specific method.
add in interface BooleanListIteratoradd in interface ListIterator<Boolean>