public interface LongListIterator extends LongBidirectionalIterator, java.util.ListIterator<java.lang.Long>
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(long k)
Inserts the specified element into the list (optional operation).
|
default void |
add(java.lang.Long k)
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.Long |
next()
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.Long |
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(long k)
Replaces the last element returned by
next() or previous() with
the specified element (optional operation). |
default void |
set(java.lang.Long k)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previousLong, skipforEachRemaining, nextLonghasPreviousdefault void set(long 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(long 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 java.util.Iterator<java.lang.Long>remove in interface java.util.ListIterator<java.lang.Long>ListIterator.remove()@Deprecated default void set(java.lang.Long k)
set in interface java.util.ListIterator<java.lang.Long>@Deprecated default void add(java.lang.Long k)
add in interface java.util.ListIterator<java.lang.Long>@Deprecated default java.lang.Long next()
next in interface java.util.Iterator<java.lang.Long>next in interface java.util.ListIterator<java.lang.Long>next in interface LongIteratornext in interface java.util.PrimitiveIterator.OfLong@Deprecated default java.lang.Long previous()
previous in interface BidirectionalIterator<java.lang.Long>previous in interface java.util.ListIterator<java.lang.Long>previous in interface LongBidirectionalIteratorListIterator.previous()