public abstract class AbstractLongListIterator extends AbstractLongBidirectionalIterator implements LongListIterator
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(long k)
Inserts the specified element into the list (optional operation).
|
void |
add(Long ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
void |
set(long k)
Replaces the last element returned by
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation). |
void |
set(Long ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previous, previousLongnext, nextLong, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, hasPrevious, next, nextIndex, previous, previousIndex, removeback, previous, previousLongnextLong, skipskiphasPreviousforEachRemainingpublic void set(long k)
ListIterator.next() or ListIterator.previous()
with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface LongListIteratork - the element used to replace the last element returned.ListIterator.set(Object)public void add(long 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 LongListIteratork - the element to insert.ListIterator.add(Object)@Deprecated public void set(Long ok)
This implementation delegates to the corresponding type-specific method.
set in interface LongListIteratorset in interface ListIterator<Long>@Deprecated public void add(Long ok)
This implementation delegates to the corresponding type-specific method.
add in interface LongListIteratoradd in interface ListIterator<Long>