Package org.eclipse.collections.api
Interface FloatIterable
-
- All Superinterfaces:
PrimitiveIterable
- All Known Subinterfaces:
ByteFloatMap
,CharFloatMap
,DoubleFloatMap
,FloatBag
,FloatFloatMap
,FloatList
,FloatSet
,FloatStack
,FloatValuesMap
,ImmutableByteFloatMap
,ImmutableCharFloatMap
,ImmutableDoubleFloatMap
,ImmutableFloatBag
,ImmutableFloatCollection
,ImmutableFloatFloatMap
,ImmutableFloatList
,ImmutableFloatSet
,ImmutableFloatStack
,ImmutableIntFloatMap
,ImmutableLongFloatMap
,ImmutableObjectFloatMap<K>
,ImmutableShortFloatMap
,IntFloatMap
,LazyFloatIterable
,LongFloatMap
,MutableByteFloatMap
,MutableCharFloatMap
,MutableDoubleFloatMap
,MutableFloatBag
,MutableFloatCollection
,MutableFloatFloatMap
,MutableFloatList
,MutableFloatSet
,MutableFloatStack
,MutableFloatValuesMap
,MutableIntFloatMap
,MutableLongFloatMap
,MutableObjectFloatMap<K>
,MutableShortFloatMap
,ObjectFloatMap<K>
,OrderedFloatIterable
,ReversibleFloatIterable
,ShortFloatMap
- All Known Implementing Classes:
AbstractFloatIterable
,AbstractFloatSet
,AbstractFloatStack
,AbstractImmutableFloatSet
,AbstractImmutableObjectFloatMap
,AbstractLazyFloatIterable
,AbstractMutableFloatKeySet
,AbstractMutableFloatValuesMap
,AbstractMutableFloatValuesMap.AbstractFloatValuesCollection
,AbstractSynchronizedFloatCollection
,AbstractUnmodifiableFloatCollection
,ByteFloatHashMap
,ByteFloatHashMap.ValuesCollection
,CharFloatHashMap
,CharFloatHashMap.ValuesCollection
,CollectBooleanToFloatIterable
,CollectByteToFloatIterable
,CollectCharToFloatIterable
,CollectDoubleToFloatIterable
,CollectFloatIterable
,CollectFloatToFloatIterable
,CollectIntToFloatIterable
,CollectLongToFloatIterable
,CollectShortToFloatIterable
,DoubleFloatHashMap
,DoubleFloatHashMap.ValuesCollection
,FloatArrayList
,FloatArrayStack
,FloatBooleanHashMap.KeySet
,FloatBooleanHashMap.KeysView
,FloatByteHashMap.KeySet
,FloatByteHashMap.KeysView
,FloatCharHashMap.KeySet
,FloatCharHashMap.KeysView
,FloatDoubleHashMap.KeySet
,FloatDoubleHashMap.KeysView
,FloatFloatHashMap
,FloatFloatHashMap.KeySet
,FloatFloatHashMap.KeysView
,FloatFloatHashMap.ValuesCollection
,FloatHashBag
,FloatHashSet
,FloatHashSet.ImmutableFloatHashSet
,FloatIntHashMap.KeySet
,FloatIntHashMap.KeysView
,FloatLongHashMap.KeySet
,FloatLongHashMap.KeysView
,FloatObjectHashMap.KeySet
,FloatObjectHashMap.KeysView
,FloatShortHashMap.KeySet
,FloatShortHashMap.KeysView
,ImmutableByteFloatEmptyMap
,ImmutableByteFloatHashMap
,ImmutableByteFloatSingletonMap
,ImmutableCharFloatEmptyMap
,ImmutableCharFloatHashMap
,ImmutableCharFloatSingletonMap
,ImmutableDoubleFloatEmptyMap
,ImmutableDoubleFloatHashMap
,ImmutableDoubleFloatSingletonMap
,ImmutableFloatArrayList
,ImmutableFloatArrayStack
,ImmutableFloatEmptyBag
,ImmutableFloatEmptyList
,ImmutableFloatEmptySet
,ImmutableFloatEmptyStack
,ImmutableFloatFloatEmptyMap
,ImmutableFloatFloatHashMap
,ImmutableFloatFloatMapKeySet
,ImmutableFloatFloatSingletonMap
,ImmutableFloatHashBag
,ImmutableFloatMapKeySet
,ImmutableFloatSingletonBag
,ImmutableFloatSingletonList
,ImmutableFloatSingletonSet
,ImmutableFloatSingletonStack
,ImmutableIntFloatEmptyMap
,ImmutableIntFloatHashMap
,ImmutableIntFloatSingletonMap
,ImmutableLongFloatEmptyMap
,ImmutableLongFloatHashMap
,ImmutableLongFloatSingletonMap
,ImmutableObjectFloatEmptyMap
,ImmutableObjectFloatHashMap
,ImmutableObjectFloatSingletonMap
,ImmutableShortFloatEmptyMap
,ImmutableShortFloatHashMap
,ImmutableShortFloatSingletonMap
,IntFloatHashMap
,IntFloatHashMap.ValuesCollection
,LazyFloatIterableAdapter
,LongFloatHashMap
,LongFloatHashMap.ValuesCollection
,ObjectFloatHashMap
,ObjectFloatHashMap.ValuesCollection
,ObjectFloatHashMapWithHashingStrategy
,ObjectFloatHashMapWithHashingStrategy.ValuesCollection
,ReverseFloatIterable
,SelectFloatIterable
,ShortFloatHashMap
,ShortFloatHashMap.ValuesCollection
,SynchronizedByteFloatMap
,SynchronizedCharFloatMap
,SynchronizedDoubleFloatMap
,SynchronizedFloatBag
,SynchronizedFloatCollection
,SynchronizedFloatFloatMap
,SynchronizedFloatIterable
,SynchronizedFloatList
,SynchronizedFloatSet
,SynchronizedFloatStack
,SynchronizedIntFloatMap
,SynchronizedLongFloatMap
,SynchronizedObjectFloatMap
,SynchronizedShortFloatMap
,TapFloatIterable
,UnmodifiableByteFloatMap
,UnmodifiableCharFloatMap
,UnmodifiableDoubleFloatMap
,UnmodifiableFloatBag
,UnmodifiableFloatCollection
,UnmodifiableFloatFloatMap
,UnmodifiableFloatList
,UnmodifiableFloatSet
,UnmodifiableFloatStack
,UnmodifiableIntFloatMap
,UnmodifiableLongFloatMap
,UnmodifiableObjectFloatMap
,UnmodifiableShortFloatMap
public interface FloatIterable extends PrimitiveIterable
FloatIterable is an interface which is memory-optimized for float primitives. It is inspired by the interface RichIterable, and contains a subset of the internal iterator methods on RichIterable like collect, sum, etc. The API also includes an external iterator method, which returns an FloatIterator. FloatIterator helps iterate over the FloatIterable without boxing the primitives. This file was automatically generated from template file primitiveIterable.stg.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
allSatisfy(FloatPredicate predicate)
Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.boolean
anySatisfy(FloatPredicate predicate)
Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.LazyFloatIterable
asLazy()
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.double
average()
default double
averageIfEmpty(double defaultValue)
default RichIterable<FloatIterable>
chunk(int size)
Partitions elements in fixed size chunks.<V> RichIterable<V>
collect(FloatToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source collection.default <V,R extends java.util.Collection<V>>
Rcollect(FloatToObjectFunction<? extends V> function, R target)
Same ascollect(FloatToObjectFunction)
, only the results are added to the target Collection.default <R extends MutableBooleanCollection>
RcollectBoolean(FloatToBooleanFunction function, R target)
Returns the targetMutableBooleanCollection
with the results of applying the specified function on each element of the source collection.default <R extends MutableByteCollection>
RcollectByte(FloatToByteFunction function, R target)
Returns the targetMutableByteCollection
with the results of applying the specified function on each element of the source collection.default <R extends MutableCharCollection>
RcollectChar(FloatToCharFunction function, R target)
Returns the targetMutableCharCollection
with the results of applying the specified function on each element of the source collection.default <R extends MutableDoubleCollection>
RcollectDouble(FloatToDoubleFunction function, R target)
Returns the targetMutableDoubleCollection
with the results of applying the specified function on each element of the source collection.default <R extends MutableFloatCollection>
RcollectFloat(FloatToFloatFunction function, R target)
Returns the targetMutableFloatCollection
with the results of applying the specified function on each element of the source collection.default <R extends MutableIntCollection>
RcollectInt(FloatToIntFunction function, R target)
Returns the targetMutableIntCollection
with the results of applying the specified function on each element of the source collection.default <R extends MutableLongCollection>
RcollectLong(FloatToLongFunction function, R target)
Returns the targetMutableLongCollection
with the results of applying the specified function on each element of the source collection.default <R extends MutableShortCollection>
RcollectShort(FloatToShortFunction function, R target)
Returns the targetMutableShortCollection
with the results of applying the specified function on each element of the source collection.boolean
contains(float value)
Returns true if the value is contained in the FloatIterable, and false if it is not.default boolean
containsAll(float... source)
Returns true if all of the values specified in the source array are contained in the FloatIterable, and false if they are not.default boolean
containsAll(FloatIterable source)
Returns true if all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.default boolean
containsAny(float... source)
Returns true if any of the values specified in the source array are contained in the FloatIterable, and false if they are not.default boolean
containsAny(FloatIterable source)
Returns true if any of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.default boolean
containsNone(float... source)
Returns true if none of the values specified in the source array are contained in the FloatIterable, and false if they are.default boolean
containsNone(FloatIterable source)
Returns true if none of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are.int
count(FloatPredicate predicate)
Returns a count of the number of elements in the FloatIterable that return true for the specified predicate.float
detectIfNone(FloatPredicate predicate, float ifNone)
void
each(FloatProcedure procedure)
A synonym for forEach.default <V,R extends java.util.Collection<V>>
RflatCollect(FloatToObjectFunction<? extends java.lang.Iterable<V>> function, R target)
flatCollect
is a special case ofcollect(FloatToObjectFunction)
.FloatIterator
floatIterator()
Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.default void
forEach(FloatProcedure procedure)
Applies the FloatProcedure to each element in the FloatIterable.<T> T
injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)
default boolean
injectIntoBoolean(boolean injectedValue, BooleanFloatToBooleanFunction function)
Returns the final boolean result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.default byte
injectIntoByte(byte injectedValue, ByteFloatToByteFunction function)
Returns the final byte result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.default char
injectIntoChar(char injectedValue, CharFloatToCharFunction function)
Returns the final char result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.default double
injectIntoDouble(double injectedValue, DoubleFloatToDoubleFunction function)
Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.default float
injectIntoFloat(float injectedValue, FloatFloatToFloatFunction function)
Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.default int
injectIntoInt(int injectedValue, IntFloatToIntFunction function)
Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.default long
injectIntoLong(long injectedValue, LongFloatToLongFunction function)
Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.default short
injectIntoShort(short injectedValue, ShortFloatToShortFunction function)
Returns the final short result of evaluating function using each element of the iterable and the previous evaluation result as the parameters.float
max()
float
maxIfEmpty(float defaultValue)
double
median()
default double
medianIfEmpty(double defaultValue)
float
min()
float
minIfEmpty(float defaultValue)
default boolean
noneSatisfy(FloatPredicate predicate)
Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.default double
reduce(DoubleFloatToDoubleFunction accumulator)
default double
reduceIfEmpty(DoubleFloatToDoubleFunction accumulator, double defaultValue)
FloatIterable
reject(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.default <R extends MutableFloatCollection>
Rreject(FloatPredicate predicate, R target)
Same asreject(FloatPredicate)
, only the results are added to the target MutableFloatCollection.FloatIterable
select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.default <R extends MutableFloatCollection>
Rselect(FloatPredicate predicate, R target)
Same asselect(FloatPredicate)
, only the results are added to the target MutableFloatCollection.double
sum()
default java.util.DoubleSummaryStatistics
summaryStatistics()
default FloatIterable
tap(FloatProcedure procedure)
float[]
toArray()
Converts the FloatIterable to a primitive float array.default float[]
toArray(float[] target)
Converts the FloatIterable to a primitive float array.MutableFloatBag
toBag()
Converts the FloatIterable to a new MutableFloatBag.MutableFloatList
toList()
Converts the FloatIterable to a new MutableFloatList.MutableFloatSet
toSet()
Converts the FloatIterable to a new MutableFloatSet.float[]
toSortedArray()
MutableFloatList
toSortedList()
default MutableFloatList
toSortedList(FloatComparator comparator)
Converts the collection to a MutableFloatList implementation sorted using the provided comparator.default <T> MutableFloatList
toSortedListBy(FloatToObjectFunction<T> function)
Converts the collection to a MutableFloatListImplementation sorted based on the natural order of the key returned byfunction
.default <T> MutableFloatList
toSortedListBy(FloatToObjectFunction<T> function, java.util.Comparator<? super T> comparator)
Converts the collection to a MutableFloatList implementation, which is sorted based on the key returned byfunction
using the providedcomparator
.-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
floatIterator
FloatIterator floatIterator()
Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.
-
toArray
float[] toArray()
Converts the FloatIterable to a primitive float array.
-
toArray
default float[] toArray(float[] target)
Converts the FloatIterable to a primitive float array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged.
-
contains
boolean contains(float value)
Returns true if the value is contained in the FloatIterable, and false if it is not.
-
containsAll
default boolean containsAll(float... source)
Returns true if all of the values specified in the source array are contained in the FloatIterable, and false if they are not.
-
containsAll
default boolean containsAll(FloatIterable source)
Returns true if all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.
-
containsAny
default boolean containsAny(float... source)
Returns true if any of the values specified in the source array are contained in the FloatIterable, and false if they are not.- Since:
- 11.0
-
containsAny
default boolean containsAny(FloatIterable source)
Returns true if any of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.- Since:
- 11.0
-
containsNone
default boolean containsNone(float... source)
Returns true if none of the values specified in the source array are contained in the FloatIterable, and false if they are.- Since:
- 11.0
-
containsNone
default boolean containsNone(FloatIterable source)
Returns true if none of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are.- Since:
- 11.0
-
forEach
default void forEach(FloatProcedure procedure)
Applies the FloatProcedure to each element in the FloatIterable.
-
each
void each(FloatProcedure procedure)
A synonym for forEach.- Since:
- 7.0.
-
tap
default FloatIterable tap(FloatProcedure procedure)
- Since:
- 9.0.
-
select
FloatIterable select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.
-
reject
FloatIterable reject(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.
-
select
default <R extends MutableFloatCollection> R select(FloatPredicate predicate, R target)
Same asselect(FloatPredicate)
, only the results are added to the target MutableFloatCollection.- Since:
- 8.1.
-
reject
default <R extends MutableFloatCollection> R reject(FloatPredicate predicate, R target)
Same asreject(FloatPredicate)
, only the results are added to the target MutableFloatCollection.- Since:
- 8.1.
-
collect
<V> RichIterable<V> collect(FloatToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.
-
collect
default <V,R extends java.util.Collection<V>> R collect(FloatToObjectFunction<? extends V> function, R target)
Same ascollect(FloatToObjectFunction)
, only the results are added to the target Collection.- Since:
- 8.1.
-
flatCollect
default <V,R extends java.util.Collection<V>> R flatCollect(FloatToObjectFunction<? extends java.lang.Iterable<V>> function, R target)
flatCollect
is a special case ofcollect(FloatToObjectFunction)
. Withcollect
, when theFloatToObjectFunction
returns a collection, the result is a collection of collections.flatCollect
outputs a single "flattened" collection instead. This method is commonly called flatMap.- Since:
- 8.1.
-
collectBoolean
default <R extends MutableBooleanCollection> R collectBoolean(FloatToBooleanFunction function, R target)
Returns the targetMutableBooleanCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
collectByte
default <R extends MutableByteCollection> R collectByte(FloatToByteFunction function, R target)
Returns the targetMutableByteCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
collectChar
default <R extends MutableCharCollection> R collectChar(FloatToCharFunction function, R target)
Returns the targetMutableCharCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
collectShort
default <R extends MutableShortCollection> R collectShort(FloatToShortFunction function, R target)
Returns the targetMutableShortCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
collectInt
default <R extends MutableIntCollection> R collectInt(FloatToIntFunction function, R target)
Returns the targetMutableIntCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
collectFloat
default <R extends MutableFloatCollection> R collectFloat(FloatToFloatFunction function, R target)
Returns the targetMutableFloatCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
collectLong
default <R extends MutableLongCollection> R collectLong(FloatToLongFunction function, R target)
Returns the targetMutableLongCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
collectDouble
default <R extends MutableDoubleCollection> R collectDouble(FloatToDoubleFunction function, R target)
Returns the targetMutableDoubleCollection
with the results of applying the specified function on each element of the source collection.- Since:
- 8.1.
-
detectIfNone
float detectIfNone(FloatPredicate predicate, float ifNone)
-
count
int count(FloatPredicate predicate)
Returns a count of the number of elements in the FloatIterable that return true for the specified predicate.
-
anySatisfy
boolean anySatisfy(FloatPredicate predicate)
Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
-
allSatisfy
boolean allSatisfy(FloatPredicate predicate)
Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
-
noneSatisfy
default boolean noneSatisfy(FloatPredicate predicate)
Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
-
toList
MutableFloatList toList()
Converts the FloatIterable to a new MutableFloatList.
-
toSet
MutableFloatSet toSet()
Converts the FloatIterable to a new MutableFloatSet.
-
toBag
MutableFloatBag toBag()
Converts the FloatIterable to a new MutableFloatBag.
-
asLazy
LazyFloatIterable asLazy()
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.
-
injectInto
<T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)
-
injectIntoBoolean
default boolean injectIntoBoolean(boolean injectedValue, BooleanFloatToBooleanFunction function)
Returns the final boolean result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
injectIntoByte
default byte injectIntoByte(byte injectedValue, ByteFloatToByteFunction function)
Returns the final byte result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
injectIntoChar
default char injectIntoChar(char injectedValue, CharFloatToCharFunction function)
Returns the final char result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
injectIntoShort
default short injectIntoShort(short injectedValue, ShortFloatToShortFunction function)
Returns the final short result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
injectIntoInt
default int injectIntoInt(int injectedValue, IntFloatToIntFunction function)
Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
injectIntoFloat
default float injectIntoFloat(float injectedValue, FloatFloatToFloatFunction function)
Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
injectIntoLong
default long injectIntoLong(long injectedValue, LongFloatToLongFunction function)
Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
injectIntoDouble
default double injectIntoDouble(double injectedValue, DoubleFloatToDoubleFunction function)
Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.- Since:
- 11.1
-
reduceIfEmpty
default double reduceIfEmpty(DoubleFloatToDoubleFunction accumulator, double defaultValue)
- Since:
- 10.0
- See Also:
reduce(DoubleFloatToDoubleFunction)
-
reduce
default double reduce(DoubleFloatToDoubleFunction accumulator)
- Since:
- 10.0
- See Also:
RichIterable.reduce(BinaryOperator)
-
chunk
default RichIterable<FloatIterable> chunk(int size)
Partitions elements in fixed size chunks.- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingFloatIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly. - Since:
- 9.2
-
sum
double sum()
-
summaryStatistics
default java.util.DoubleSummaryStatistics summaryStatistics()
- Since:
- 8.0
-
max
float max()
-
maxIfEmpty
float maxIfEmpty(float defaultValue)
-
min
float min()
-
minIfEmpty
float minIfEmpty(float defaultValue)
-
average
double average()
-
averageIfEmpty
default double averageIfEmpty(double defaultValue)
- Since:
- 9.0
-
median
double median()
-
medianIfEmpty
default double medianIfEmpty(double defaultValue)
- Since:
- 9.0
-
toSortedArray
float[] toSortedArray()
-
toSortedList
MutableFloatList toSortedList()
-
toSortedList
default MutableFloatList toSortedList(FloatComparator comparator)
Converts the collection to a MutableFloatList implementation sorted using the provided comparator.
-
toSortedListBy
default <T> MutableFloatList toSortedListBy(FloatToObjectFunction<T> function)
Converts the collection to a MutableFloatListImplementation sorted based on the natural order of the key returned byfunction
.
-
toSortedListBy
default <T> MutableFloatList toSortedListBy(FloatToObjectFunction<T> function, java.util.Comparator<? super T> comparator)
Converts the collection to a MutableFloatList implementation, which is sorted based on the key returned byfunction
using the providedcomparator
.
-
-