Interface FloatList
- All Superinterfaces:
FloatIterable
,OrderedFloatIterable
,PrimitiveIterable
,ReversibleFloatIterable
- All Known Subinterfaces:
ImmutableFloatList
,MutableFloatList
- All Known Implementing Classes:
FloatArrayList
,SynchronizedFloatList
,UnmodifiableFloatList
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionint
binarySearch
(float value) <V> ListIterable<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> ListIterable<V>
collectWithIndex
(FloatIntToObjectFunction<? extends V> function) Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.distinct()
double
dotProduct
(FloatList list) boolean
Follows the same general contract asList.equals(Object)
.default void
forEachInBoth
(FloatList other, FloatFloatProcedure procedure) This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.float
get
(int index) int
hashCode()
Follows the same general contract asList.hashCode()
.int
lastIndexOf
(float value) reject
(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.default FloatList
rejectWithIndex
(FloatIntPredicate predicate) Returns a new FloatList excluding all elements with corresponding indexes matching the specified predicate.select
(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.default FloatList
selectWithIndex
(FloatIntPredicate predicate) Returns a new FloatList including all elements with corresponding indexes matching the specified predicate.subList
(int fromIndex, int toIndex) default FloatList
tap
(FloatProcedure procedure) Returns an immutable copy of this list.default <T> ListIterable<FloatObjectPair<T>>
Returns aListIterable
formed from thisFloatList
and aListIterable
by combining corresponding elements in pairs.default ListIterable<FloatFloatPair>
zipFloat
(FloatIterable iterable) Returns aListIterable
formed from thisFloatList
and anotherFloatList
by combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.FloatIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
get
float get(int index) -
dotProduct
-
binarySearch
int binarySearch(float value) -
lastIndexOf
int lastIndexOf(float value) -
select
Description copied from interface:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceOrderedFloatIterable
- Specified by:
select
in interfaceReversibleFloatIterable
-
reject
Description copied from interface:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceOrderedFloatIterable
- Specified by:
reject
in interfaceReversibleFloatIterable
-
tap
- Specified by:
tap
in interfaceFloatIterable
- Since:
- 9.0.
-
forEachInBoth
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.- Since:
- 11.1
-
selectWithIndex
Returns a new FloatList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
selectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 11.1.
-
rejectWithIndex
Returns a new FloatList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
rejectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 11.1.
-
collect
Description copied from interface:FloatIterable
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.- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceOrderedFloatIterable
- Specified by:
collect
in interfaceReversibleFloatIterable
-
collectWithIndex
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
collectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 9.1.
-
equals
Follows the same general contract asList.equals(Object)
. -
hashCode
int hashCode()Follows the same general contract asList.hashCode()
. -
toImmutable
ImmutableFloatList toImmutable()Returns an immutable copy of this list. If the list is immutable, it returns itself. -
distinct
FloatList distinct()- Specified by:
distinct
in interfaceReversibleFloatIterable
- Since:
- 6.0.
-
toReversed
FloatList toReversed()- Specified by:
toReversed
in interfaceReversibleFloatIterable
- Since:
- 5.0.
-
subList
- Since:
- 5.0.
- See Also:
-
zipFloat
Returns aListIterable
formed from thisFloatList
and anotherFloatList
by combining corresponding elements in pairs. If one of the twoFloatList
s is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
Returns aListIterable
formed from thisFloatList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-