public interface ObjectBigListIterator<K> extends ObjectBidirectionalIterator<K>, BigListIterator<K>
BigListIterator
.BigListIterator
Modifier and Type | Method and 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.
|
back
nextIndex, previousIndex
hasPrevious, previous
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()