public abstract class AbstractShortListIterator extends AbstractShortBidirectionalIterator implements ShortListIterator
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(short k)
Inserts the specified element into the list (optional operation).
|
void |
add(Short ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
void |
set(short k)
Replaces the last element returned by
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation). |
void |
set(Short ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previous, previousShortnext, nextShort, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, hasPrevious, next, nextIndex, previous, previousIndex, removeback, previous, previousShortnextShort, skipskiphasPreviousforEachRemainingpublic void set(short k)
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface ShortListIteratork - the element used to replace the last element returned.ListIterator.set(Object)public void add(short 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 ShortListIteratork - the element to insert.ListIterator.add(Object)@Deprecated public void set(Short ok)
This implementation delegates to the corresponding type-specific method.
set in interface ShortListIteratorset in interface ListIterator<Short>@Deprecated public void add(Short ok)
This implementation delegates to the corresponding type-specific method.
add in interface ShortListIteratoradd in interface ListIterator<Short>