BidirectionalIterator<K>
, BigListIterator<K>
, java.util.Iterator<K>
, ObjectBidirectionalIterator<K>
, ObjectIterator<K>
AbstractObjectBigListIterator
, ObjectBigListIterators.BigListIteratorListIterator
, ObjectBigListIterators.EmptyBigListIterator
, ObjectBigListIterators.UnmodifiableBigListIterator
public interface ObjectBigListIterator<K> extends ObjectBidirectionalIterator<K>, BigListIterator<K>
BigListIterator
.BigListIterator
Modifier and Type | Method | Description |
---|---|---|
default void |
add(K k) |
Inserts the specified element into the list (optional operation).
|
default long |
back(long n) |
Moves back for the given number of elements.
|
default void |
set(K k) |
Replaces the last element returned by
next()
or previous() with the specified element
(optional operation). |
default int |
skip(int n) |
Skips the given number of elements.
|
default long |
skip(long n) |
Skips the given number of elements.
|
hasPrevious, previous
nextIndex, previousIndex
back
default void set(K k)
next()
or previous()
with the specified element
(optional operation).set
in interface BigListIterator<K>
k
- an element.ListIterator.set(Object)
default void add(K k)
add
in interface BigListIterator<K>
k
- an element.ListIterator.add(Object)
default long skip(long n)
The effect of this call is exactly the same as that of calling
next()
for n
times (possibly stopping
if Iterator.hasNext()
becomes false).
n
- the number of elements to skip.Iterator.next()
default long back(long n)
The effect of this call is exactly the same as that of calling
previous()
for n
times (possibly
stopping if BidirectionalIterator.hasPrevious()
becomes false).
n
- the number of elements to skip back.BidirectionalIterator.previous()
default int skip(int n)
The effect of this call is exactly the same as that of calling
Iterator.next()
for n
times (possibly stopping if Iterator.hasNext()
becomes false).
skip
in interface ObjectBidirectionalIterator<K>
skip
in interface ObjectIterator<K>
n
- the number of elements to skip.Iterator.next()