Package it.unimi.dsi.fastutil.floats
Interface FloatBigListIterator
-
- All Superinterfaces:
BidirectionalIterator<Float>,BigListIterator<Float>,FloatBidirectionalIterator,FloatIterator,Iterator<Float>,ObjectBidirectionalIterator<Float>,ObjectIterator<Float>
- All Known Implementing Classes:
AbstractFloatBigListIterator,FloatBigListIterators.BigListIteratorListIterator,FloatBigListIterators.EmptyBigListIterator,FloatBigListIterators.UnmodifiableBigListIterator
public interface FloatBigListIterator extends FloatBidirectionalIterator, BigListIterator<Float>
A type-specificBigListIterator.- See Also:
BigListIterator
-
-
Method Summary
Modifier and Type Method Description default voidadd(float k)Inserts the specified element into the list (optional operation).default voidadd(Float k)Deprecated.Please use the corresponding type-specific method instead.default longback(long n)Moves back for the given number of elements.default voidset(float k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidset(Float 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.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, next, nextFloat
-
-
-
-
Method Detail
-
set
default void set(float k)
Replaces the last element returned bynext()orprevious()with the specified element (optional operation).- See Also:
ListIterator.set(Object)
-
add
default void add(float k)
Inserts the specified element into the list (optional operation).- See Also:
ListIterator.add(Object)
-
set
@Deprecated default void set(Float k)
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:
setin interfaceBigListIterator<Float>- Parameters:
k- an element.- See Also:
ListIterator.set(Object)
-
add
@Deprecated default void add(Float k)
Deprecated.Please use the corresponding type-specific method instead.Inserts the specified element into the list (optional operation).- Specified by:
addin interfaceBigListIterator<Float>- 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
FloatIterator.next()forntimes (possibly stopping ifIterator.hasNext()becomes false).- Specified by:
skipin interfaceFloatBidirectionalIterator- Specified by:
skipin interfaceFloatIterator- Specified by:
skipin interfaceObjectBidirectionalIterator<Float>- Specified by:
skipin interfaceObjectIterator<Float>- Parameters:
n- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
-
-