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.BigListIteratorListIterator,ObjectBigListIterators.EmptyBigListIterator,ObjectBigListIterators.UnmodifiableBigListIterator
public interface ObjectBigListIterator<K> extends ObjectBidirectionalIterator<K>, BigListIterator<K>
A type-specificBigListIterator.- See Also:
BigListIterator
-
-
Method Summary
Modifier and Type Method Description default voidadd(K k)Inserts the specified element into the list (optional operation).default longback(long n)Moves back for the given number of elements.default voidset(K k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default intskip(int n)Skips the given number of elements.default longskip(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 Detail
-
set
default void set(K k)
Replaces the last element returned bynext()orprevious()with the specified element (optional operation).- Specified by:
setin interfaceBigListIterator<K>- Parameters:
k- an element.- See Also:
ListIterator.set(Object)
-
add
default void add(K k)
Inserts the specified element into the list (optional operation).- Specified by:
addin interfaceBigListIterator<K>- Parameters:
k- an element.- See Also:
ListIterator.add(Object)
-
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()forntimes (possibly stopping ifIterator.hasNext()becomes false).- Parameters:
n- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
-
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()forntimes (possibly stopping ifBidirectionalIterator.hasPrevious()becomes false).- Parameters:
n- the number of elements to skip back.- Returns:
- the number of elements actually skipped.
- See Also:
BidirectionalIterator.previous()
-
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()forntimes (possibly stopping ifIterator.hasNext()becomes false).- Specified by:
skipin interfaceObjectBidirectionalIterator<K>- Specified by:
skipin interfaceObjectIterator<K>- Parameters:
n- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
-
-