public interface BooleanListIterator extends BooleanBidirectionalIterator, ListIterator<Boolean>
ListIterator.
This interface merges the methods provided by a ListIterator and
a type-specific BidirectionalIterator. Moreover, it provides
type-specific versions of add()
and set().
ListIterator,
BidirectionalIterator| Modifier and Type | Method and Description |
|---|---|
default void |
add(boolean k)
Inserts the specified element into the list (optional operation).
|
default void |
add(Boolean k)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Boolean |
next()
Deprecated.
Please use the corresponding type-specific method instead.
|
default Boolean |
previous()
Deprecated.
Please use the corresponding type-specific method instead.
|
default void |
remove()
Removes from the underlying collection the last element returned
by this iterator (optional operation).
|
default void |
set(boolean k)
Replaces the last element returned by
next() or
previous() with the specified element (optional operation). |
default void |
set(Boolean k)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previousBoolean, skipforEachRemaining, forEachRemaining, nextBooleanhasPrevioushasNext, hasPrevious, nextIndex, previousIndexdefault void set(boolean k)
next() or
previous() with the specified element (optional operation).k - the element used to replace the last element returned.
This default implementation just throws an UnsupportedOperationException.
ListIterator.set(Object)default void add(boolean k)
This default implementation just throws an UnsupportedOperationException.
k - the element to insert.ListIterator.add(Object)default void remove()
This default implementation just throws an UnsupportedOperationException.
remove in interface Iterator<Boolean>remove in interface ListIterator<Boolean>ListIterator.remove()@Deprecated default void set(Boolean k)
set in interface ListIterator<Boolean>@Deprecated default void add(Boolean k)
add in interface ListIterator<Boolean>@Deprecated default Boolean next()
next in interface BooleanIteratornext in interface Iterator<Boolean>next in interface ListIterator<Boolean>@Deprecated default Boolean previous()
previous in interface BidirectionalIterator<Boolean>previous in interface BooleanBidirectionalIteratorprevious in interface ListIterator<Boolean>ListIterator.previous()Copyright © 2020. All rights reserved.