public interface CharListIterator extends CharBidirectionalIterator, ListIterator<Character>
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(char k)
Inserts the specified element into the list (optional operation).
|
default void |
add(Character k)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Character |
next()
Deprecated.
Please use the corresponding type-specific method instead.
|
default Character |
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(char k)
Replaces the last element returned by
next() or
previous() with the specified element (optional operation). |
default void |
set(Character k)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previousChar, skipforEachRemaining, forEachRemaining, nextCharhasPrevioushasNext, hasPrevious, nextIndex, previousIndexdefault void set(char 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(char 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<Character>remove in interface ListIterator<Character>ListIterator.remove()@Deprecated default void set(Character k)
set in interface ListIterator<Character>@Deprecated default void add(Character k)
add in interface ListIterator<Character>@Deprecated default Character next()
next in interface CharIteratornext in interface Iterator<Character>next in interface ListIterator<Character>@Deprecated default Character previous()
previous in interface BidirectionalIterator<Character>previous in interface CharBidirectionalIteratorprevious in interface ListIterator<Character>ListIterator.previous()