Interface BigListIterator<K>
- All Superinterfaces:
BidirectionalIterator<K>, Iterator<K>
- All Known Subinterfaces:
BooleanBigListIterator, ByteBigListIterator, CharBigListIterator, DoubleBigListIterator, FloatBigListIterator, IntBigListIterator, LongBigListIterator, ObjectBigListIterator<K>, ShortBigListIterator
- All Known Implementing Classes:
AbstractBooleanBigListIterator, AbstractByteBigListIterator, AbstractCharBigListIterator, AbstractDoubleBigListIterator, AbstractFloatBigListIterator, AbstractIntBigListIterator, AbstractLongBigListIterator, AbstractObjectBigListIterator, AbstractShortBigListIterator, BooleanBigListIterators.AbstractIndexBasedBigListIterator, BooleanBigListIterators.BigListIteratorListIterator, BooleanBigListIterators.EmptyBigListIterator, BooleanBigListIterators.UnmodifiableBigListIterator, ByteBigListIterators.AbstractIndexBasedBigListIterator, ByteBigListIterators.BigListIteratorListIterator, ByteBigListIterators.EmptyBigListIterator, ByteBigListIterators.UnmodifiableBigListIterator, CharBigListIterators.AbstractIndexBasedBigListIterator, CharBigListIterators.BigListIteratorListIterator, CharBigListIterators.EmptyBigListIterator, CharBigListIterators.UnmodifiableBigListIterator, DoubleBigListIterators.AbstractIndexBasedBigListIterator, DoubleBigListIterators.BigListIteratorListIterator, DoubleBigListIterators.EmptyBigListIterator, DoubleBigListIterators.UnmodifiableBigListIterator, FloatBigListIterators.AbstractIndexBasedBigListIterator, FloatBigListIterators.BigListIteratorListIterator, FloatBigListIterators.EmptyBigListIterator, FloatBigListIterators.UnmodifiableBigListIterator, IntBigListIterators.AbstractIndexBasedBigListIterator, IntBigListIterators.BigListIteratorListIterator, IntBigListIterators.EmptyBigListIterator, IntBigListIterators.UnmodifiableBigListIterator, LongBigListIterators.AbstractIndexBasedBigListIterator, LongBigListIterators.BigListIteratorListIterator, LongBigListIterators.EmptyBigListIterator, LongBigListIterators.UnmodifiableBigListIterator, ObjectBigListIterators.AbstractIndexBasedBigListIterator, ObjectBigListIterators.BigListIteratorListIterator, ObjectBigListIterators.EmptyBigListIterator, ObjectBigListIterators.UnmodifiableBigListIterator, ShortBigListIterators.AbstractIndexBasedBigListIterator, ShortBigListIterators.BigListIteratorListIterator, ShortBigListIterators.EmptyBigListIterator, ShortBigListIterators.UnmodifiableBigListIterator
A list iterator over a
BigList.
This kind of iterator is essentially a ListIterator with long indices.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidInserts the specified element into the list (optional operation).longReturns the index of the element that would be returned by a subsequent call to next.longReturns the index of the element that would be returned by a subsequent call to previous.default voidReplaces the last element returned byIterator.next()orBidirectionalIterator.previous()with the specified element (optional operation).Methods inherited from interface BidirectionalIterator
hasPrevious, previousMethods inherited from interface Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
nextIndex
long nextIndex()Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.)- Returns:
- the index of the element that would be returned by a subsequent call to next, or list size if list iterator is at end of list.
- See Also:
-
previousIndex
long previousIndex()Returns the index of the element that would be returned by a subsequent call to previous. (Returns -1 if the list iterator is at the beginning of the list.)- Returns:
- the index of the element that would be returned by a subsequent call to previous, or -1 if list iterator is at beginning of list.
- See Also:
-
set
Replaces the last element returned byIterator.next()orBidirectionalIterator.previous()with the specified element (optional operation).This default implemention just throws an
UnsupportedOperationException.- Parameters:
e- an element.- See Also:
-
add
Inserts the specified element into the list (optional operation).This default implemention just throws an
UnsupportedOperationException.- Parameters:
e- an element.- See Also:
-