Package it.unimi.dsi.fastutil.objects
Interface ObjectBigListIterator<K>
- All Superinterfaces:
BidirectionalIterator<K>
,BigListIterator<K>
,Iterator<K>
,ObjectBidirectionalIterator<K>
,ObjectIterator<K>
- All Known Implementing Classes:
AbstractObjectBigListIterator
,ObjectBigListIterators.AbstractIndexBasedBigListIterator
,ObjectBigListIterators.BigListIteratorListIterator
,ObjectBigListIterators.EmptyBigListIterator
,ObjectBigListIterators.UnmodifiableBigListIterator
public interface ObjectBigListIterator<K>
extends ObjectBidirectionalIterator<K>, BigListIterator<K>
A type-specific
BigListIterator
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Inserts the specified element into the list (optional operation).default long
back
(long n) Moves back for the given number of elements.default void
Replaces the last element returned bynext()
orprevious()
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.Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
Methods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndex
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator
back
-
Method Details
-
set
Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).- Specified by:
set
in interfaceBigListIterator<K>
- Parameters:
k
- an element.- See Also:
-
add
Inserts the specified element into the list (optional operation).- Specified by:
add
in interfaceBigListIterator<K>
- Parameters:
k
- an element.- See Also:
-
skip
default long skip(long n) Skips the given number of elements.The effect of this call is exactly the same as that of calling
next()
forn
times (possibly stopping ifIterator.hasNext()
becomes false).- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
-
back
default long back(long n) Moves back for the given number of elements.The effect of this call is exactly the same as that of calling
previous()
forn
times (possibly stopping ifBidirectionalIterator.hasPrevious()
becomes false).- Parameters:
n
- the number of elements to skip back.- Returns:
- the number of elements actually skipped.
- See Also:
-
skip
default int skip(int n) Skips the given number of elements.The effect of this call is exactly the same as that of calling
Iterator.next()
forn
times (possibly stopping ifIterator.hasNext()
becomes false).- Specified by:
skip
in interfaceObjectBidirectionalIterator<K>
- Specified by:
skip
in interfaceObjectIterator<K>
- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
-