Package it.unimi.dsi.fastutil.floats
Interface FloatBigListIterator
- All Superinterfaces:
BidirectionalIterator<Float>
,BigListIterator<Float>
,FloatBidirectionalIterator
,FloatIterator
,Iterator<Float>
,ObjectBidirectionalIterator<Float>
,ObjectIterator<Float>
,PrimitiveIterator<Float,
FloatConsumer>
- All Known Implementing Classes:
AbstractFloatBigListIterator
,FloatBigListIterators.AbstractIndexBasedBigListIterator
,FloatBigListIterators.BigListIteratorListIterator
,FloatBigListIterators.EmptyBigListIterator
,FloatBigListIterators.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 void
add
(float k) Inserts the specified element into the list (optional operation).default void
Deprecated.Please use the corresponding type-specific method instead.default long
back
(long n) Moves back for the given number of elements.default void
set
(float k) Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).default void
Deprecated.Please use the corresponding type-specific method instead.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
Methods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndex
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatBidirectionalIterator
back, previous, previousFloat
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterator
forEachRemaining, forEachRemaining, forEachRemaining, next, nextFloat
-
Method Details
-
set
default void set(float k) Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).- See Also:
-
add
default void add(float 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 byFloatIterator.next()
orFloatBidirectionalIterator.previous()
with the specified element (optional operation).- Specified by:
set
in interfaceBigListIterator<Float>
- 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:
add
in interfaceBigListIterator<Float>
- 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
FloatIterator.next()
forn
times (possibly stopping ifIterator.hasNext()
becomes false).- Specified by:
skip
in interfaceFloatBidirectionalIterator
- Specified by:
skip
in interfaceFloatIterator
- Specified by:
skip
in interfaceObjectBidirectionalIterator<Float>
- Specified by:
skip
in interfaceObjectIterator<Float>
- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
-