public interface LongListIterator extends LongBidirectionalIterator, ListIterator<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,
BidirectionalIteratorPrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Modifier and Type | Method and Description |
|---|---|
default void |
add(long k)
Inserts the specified element into the list (optional operation).
|
default void |
add(Long k)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Long |
next()
Deprecated.
Please use the corresponding type-specific method instead.
|
default 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(Long k)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previousLong, skipforEachRemaining, nextLongforEachRemaininghasPrevioushasNext, hasPrevious, nextIndex, previousIndexdefault 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 Iterator<Long>remove in interface ListIterator<Long>ListIterator.remove()@Deprecated default void set(Long k)
set in interface ListIterator<Long>@Deprecated default void add(Long k)
add in interface ListIterator<Long>@Deprecated default Long next()
next in interface Iterator<Long>next in interface ListIterator<Long>next in interface LongIteratornext in interface PrimitiveIterator.OfLong@Deprecated default Long previous()
previous in interface BidirectionalIterator<Long>previous in interface ListIterator<Long>previous in interface LongBidirectionalIteratorListIterator.previous()Copyright © 2020. All rights reserved.