Interface DoubleBigListIterator
- All Superinterfaces:
BidirectionalIterator<Double>,BigListIterator<Double>,DoubleBidirectionalIterator,DoubleIterator,Iterator<Double>,ObjectBidirectionalIterator<Double>,ObjectIterator<Double>,PrimitiveIterator<Double, DoubleConsumer>,PrimitiveIterator.OfDouble
- All Known Implementing Classes:
AbstractDoubleBigListIterator,DoubleBigListIterators.AbstractIndexBasedBigListIterator,DoubleBigListIterators.BigListIteratorListIterator,DoubleBigListIterators.EmptyBigListIterator,DoubleBigListIterators.UnmodifiableBigListIterator
A type-specific
BigListIterator.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Method Summary
Modifier and TypeMethodDescriptiondefault voidadd(double k) Inserts the specified element into the list (optional operation).default voidDeprecated.Please use the corresponding type-specific method instead.default longback(long n) Moves back for the given number of elements.default voidset(double k) Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidDeprecated.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.BidirectionalIterator
hasPreviousMethods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndexMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleBidirectionalIterator
back, previous, previousDoubleMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterator
forEachRemaining, forEachRemaining, next, nextDoubleMethods inherited from interface java.util.PrimitiveIterator.OfDouble
forEachRemaining
-
Method Details
-
set
default void set(double k) Replaces the last element returned bynext()orprevious()with the specified element (optional operation).- See Also:
-
add
default void add(double k) Inserts the specified element into the list (optional operation).- See Also:
-
set
Deprecated.Please use the corresponding type-specific method instead.Replaces the last element returned byDoubleIterator.next()orDoubleBidirectionalIterator.previous()with the specified element (optional operation).- Specified by:
setin interfaceBigListIterator<Double>- Parameters:
k- an element.- See Also:
-
add
Deprecated.Please use the corresponding type-specific method instead.Inserts the specified element into the list (optional operation).- Specified by:
addin interfaceBigListIterator<Double>- 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()forntimes (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()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:
-
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
DoubleIterator.next()forntimes (possibly stopping ifIterator.hasNext()becomes false).- Specified by:
skipin interfaceDoubleBidirectionalIterator- Specified by:
skipin interfaceDoubleIterator- Specified by:
skipin interfaceObjectBidirectionalIterator<Double>- Specified by:
skipin interfaceObjectIterator<Double>- Parameters:
n- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
-