Interface FloatList
- All Superinterfaces:
FloatIterable,OrderedFloatIterable,PrimitiveIterable,ReversibleFloatIterable
- All Known Subinterfaces:
ImmutableFloatList,MutableFloatList
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionintbinarySearch(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()doubledotProduct(FloatList list) booleanFollows the same general contract asList.equals(Object).default voidforEachInBoth(FloatList other, FloatFloatProcedure procedure) This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.floatget(int index) inthashCode()Follows the same general contract asList.hashCode().intlastIndexOf(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 FloatListrejectWithIndex(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 FloatListselectWithIndex(FloatIntPredicate predicate) Returns a new FloatList including all elements with corresponding indexes matching the specified predicate.subList(int fromIndex, int toIndex) default FloatListtap(FloatProcedure procedure) Returns an immutable copy of this list.default <T> ListIterable<FloatObjectPair<T>>Returns aListIterableformed from thisFloatListand aListIterableby combining corresponding elements in pairs.default ListIterable<FloatFloatPair>zipFloat(FloatIterable iterable) Returns aListIterableformed from thisFloatListand anotherFloatListby 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods 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:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceOrderedFloatIterable- Specified by:
selectin interfaceReversibleFloatIterable
-
reject
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceOrderedFloatIterable- Specified by:
rejectin interfaceReversibleFloatIterable
-
tap
- Specified by:
tapin 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:
selectWithIndexin interfaceOrderedFloatIterable- Specified by:
selectWithIndexin interfaceReversibleFloatIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new FloatList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedFloatIterable- Specified by:
rejectWithIndexin interfaceReversibleFloatIterable- Since:
- 11.1.
-
collect
Description copied from interface:FloatIterableReturns 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:
collectin interfaceFloatIterable- Specified by:
collectin interfaceOrderedFloatIterable- Specified by:
collectin interfaceReversibleFloatIterable
-
collectWithIndex
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceOrderedFloatIterable- Specified by:
collectWithIndexin 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:
distinctin interfaceReversibleFloatIterable- Since:
- 6.0.
-
toReversed
FloatList toReversed()- Specified by:
toReversedin interfaceReversibleFloatIterable- Since:
- 5.0.
-
subList
- Since:
- 5.0.
- See Also:
-
zipFloat
Returns aListIterableformed from thisFloatListand anotherFloatListby combining corresponding elements in pairs. If one of the twoFloatLists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
Returns aListIterableformed from thisFloatListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-