public interface IntListIterator extends ListIterator<Integer>, IntBidirectionalIterator
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 |
|---|---|
void |
add(int k)
Inserts the specified element into the list (optional operation).
|
void |
add(Integer k)
Deprecated.
Please use the corresponding type-specific method instead.
|
void |
set(int k)
Replaces the last element returned by
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation). |
void |
set(Integer k)
Deprecated.
Please use the corresponding type-specific method instead.
|
hasNext, hasPrevious, next, nextIndex, previous, previousIndex, removeback, previous, previousIntnextInt, skipskiphasPreviousforEachRemainingvoid set(int k)
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation).k - the element used to replace the last element returned.ListIterator.set(Object)void add(int k)
ListIterator.next(), if any, and after the element that would be returned by
ListIterator.previous(), if any.k - the element to insert.ListIterator.add(Object)@Deprecated void set(Integer k)
set in interface ListIterator<Integer>@Deprecated void add(Integer k)
add in interface ListIterator<Integer>