Package it.unimi.dsi.fastutil.longs
Interface LongBigListIterator
- All Superinterfaces:
BidirectionalIterator<Long>,BigListIterator<Long>,Iterator<Long>,LongBidirectionalIterator,LongIterator,ObjectBidirectionalIterator<Long>,ObjectIterator<Long>,PrimitiveIterator<Long,LongConsumer>,PrimitiveIterator.OfLong
- All Known Implementing Classes:
AbstractLongBigListIterator,LongBigListIterators.BigListIteratorListIterator,LongBigListIterators.EmptyBigListIterator,LongBigListIterators.UnmodifiableBigListIterator
public interface LongBigListIterator extends LongBidirectionalIterator, BigListIterator<Long>
A type-specific
BigListIterator.- See Also:
BigListIterator
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Method Summary
Modifier and Type Method Description default voidadd(long k)Inserts the specified element into the list (optional operation).default voidadd(Long k)Deprecated.Please use the corresponding type-specific method instead.default longback(long n)Moves back for the given number of elements.default voidset(long k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidset(Long k)Deprecated.Please use the corresponding type-specific method instead.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.longs.LongBidirectionalIterator
back, previous, previousLongMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, next, nextLong
-
Method Details
-
set
default void set(long k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).- See Also:
ListIterator.set(Object)
-
add
default void add(long k)Inserts the specified element into the list (optional operation).- See Also:
ListIterator.add(Object)
-
set
Deprecated.Please use the corresponding type-specific method instead.Replaces the last element returned byLongIterator.next()orLongBidirectionalIterator.previous()with the specified element (optional operation).- Specified by:
setin interfaceBigListIterator<Long>- Parameters:
k- an element.- See Also:
ListIterator.set(Object)
-
add
Deprecated.Please use the corresponding type-specific method instead.Inserts the specified element into the list (optional operation).- Specified by:
addin interfaceBigListIterator<Long>- 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
LongIterator.next()forntimes (possibly stopping ifIterator.hasNext()becomes false).- Specified by:
skipin interfaceLongBidirectionalIterator- Specified by:
skipin interfaceLongIterator- Specified by:
skipin interfaceObjectBidirectionalIterator<Long>- Specified by:
skipin interfaceObjectIterator<Long>- Parameters:
n- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
-