Package it.unimi.dsi.fastutil.floats
Interface FloatSpliterator
- All Superinterfaces:
Spliterator<Float>
,Spliterator.OfPrimitive<Float,
FloatConsumer, FloatSpliterator>
- All Known Implementing Classes:
AbstractFloatSpliterator
,FloatBigSpliterators.AbstractIndexBasedSpliterator
,FloatBigSpliterators.EarlyBindingSizeIndexBasedSpliterator
,FloatBigSpliterators.LateBindingSizeIndexBasedSpliterator
,FloatSpliterators.AbstractIndexBasedSpliterator
,FloatSpliterators.EarlyBindingSizeIndexBasedSpliterator
,FloatSpliterators.EmptySpliterator
,FloatSpliterators.LateBindingSizeIndexBasedSpliterator
public interface FloatSpliterator
extends Spliterator.OfPrimitive<Float,FloatConsumer,FloatSpliterator>
A type-specific
Spliterator
; provides an additional methods to avoid (un)boxing, and the
possibility to skip elements.- Since:
- 8.5.0
- Author:
- C. Sean Young <csyoung@google.com>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,
T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
forEachRemaining
(Consumer<? super Float> action) Deprecated.Please use the corresponding type-specific method instead.default FloatComparator
default long
skip
(long n) Skips the given number of elements.default boolean
tryAdvance
(Consumer<? super Float> action) Deprecated.Please use the corresponding type-specific method instead.trySplit()
Methods inherited from interface java.util.Spliterator
characteristics, estimateSize, getExactSizeIfKnown, hasCharacteristics
Methods inherited from interface java.util.Spliterator.OfPrimitive
forEachRemaining, tryAdvance
-
Method Details
-
tryAdvance
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
tryAdvance
in interfaceSpliterator<Float>
-
forEachRemaining
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
forEachRemaining
in interfaceSpliterator<Float>
-
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
tryAdvance(java.util.function.Consumer<? super java.lang.Float>)
forn
times (possibly stopping iftryAdvance(java.util.function.Consumer<? super java.lang.Float>)
returns false). The action called will do nothing; elements will be discarded.- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
- Implementation Specification:
- This default implementation is linear in n. It is expected concrete implementations that are capable of it will override it to run lower time, but be prepared for linear time.
-
trySplit
FloatSpliterator trySplit()- Specified by:
trySplit
in interfaceSpliterator<Float>
- Specified by:
trySplit
in interfaceSpliterator.OfPrimitive<Float,
FloatConsumer, FloatSpliterator> - API Notes:
- Note that this specification strengthens the one given in
Spliterator.trySplit()
.
-
getComparator
- Specified by:
getComparator
in interfaceSpliterator<Float>
- API Notes:
- Note that this specification strengthens the one given in
Spliterator.getComparator()
.
-