public interface BigListIterator<K> extends BidirectionalIterator<K>
BigList
.
This kind of iterator is essentially a ListIterator
with long indices.
Iterator
,
ListIterator
Modifier and Type | Method and Description |
---|---|
default void |
add(K e)
Inserts the specified element into the list (optional operation).
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
default void |
set(K e)
Replaces the last element returned by
Iterator.next() or
BidirectionalIterator.previous() with the specified element (optional operation). |
hasPrevious, previous
long nextIndex()
ListIterator.nextIndex()
long previousIndex()
ListIterator.previousIndex()
default void set(K e)
Iterator.next()
or
BidirectionalIterator.previous()
with the specified element (optional operation).
This default implemention just throws an UnsupportedOperationException
.
e
- an element.ListIterator.set(Object)
default void add(K e)
This default implemention just throws an UnsupportedOperationException
.
e
- an element.ListIterator.add(Object)