public interface ShortListIterator extends ShortBidirectionalIterator, ListIterator<Short>
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(short k)
Inserts the specified element into the list (optional operation).
|
default void |
add(Short k)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Short |
next()
Deprecated.
Please use the corresponding type-specific method instead.
|
default Short |
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(short k)
Replaces the last element returned by
next() or
previous() with the specified element (optional operation). |
default void |
set(Short k)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previousShort, skipforEachRemaining, forEachRemaining, nextShorthasPrevioushasNext, hasPrevious, nextIndex, previousIndexdefault void set(short 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(short 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<Short>remove in interface ListIterator<Short>ListIterator.remove()@Deprecated default void set(Short k)
set in interface ListIterator<Short>@Deprecated default void add(Short k)
add in interface ListIterator<Short>@Deprecated default Short next()
next in interface Iterator<Short>next in interface ListIterator<Short>next in interface ShortIterator@Deprecated default Short previous()
previous in interface BidirectionalIterator<Short>previous in interface ListIterator<Short>previous in interface ShortBidirectionalIteratorListIterator.previous()