Interface FloatList
-
- All Superinterfaces:
FloatIterable
,OrderedFloatIterable
,PrimitiveIterable
,ReversibleFloatIterable
- All Known Subinterfaces:
ImmutableFloatList
,MutableFloatList
- All Known Implementing Classes:
FloatArrayList
,ImmutableFloatArrayList
,ImmutableFloatEmptyList
,ImmutableFloatSingletonList
,SynchronizedFloatList
,UnmodifiableFloatList
public interface FloatList extends ReversibleFloatIterable
This file was automatically generated from template file primitiveList.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
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.FloatList
distinct()
double
dotProduct(FloatList list)
boolean
equals(java.lang.Object o)
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)
FloatList
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.FloatList
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.FloatList
subList(int fromIndex, int toIndex)
default FloatList
tap(FloatProcedure procedure)
ImmutableFloatList
toImmutable()
Returns an immutable copy of this list.FloatList
toReversed()
default <T> ListIterable<FloatObjectPair<T>>
zip(java.lang.Iterable<T> iterable)
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 Detail
-
get
float get(int index)
-
dotProduct
double dotProduct(FloatList list)
-
binarySearch
int binarySearch(float value)
-
lastIndexOf
int lastIndexOf(float value)
-
select
FloatList select(FloatPredicate predicate)
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
FloatList reject(FloatPredicate predicate)
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
default FloatList tap(FloatProcedure procedure)
- Specified by:
tap
in interfaceFloatIterable
- Since:
- 9.0.
-
forEachInBoth
default void forEachInBoth(FloatList other, FloatFloatProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.- Since:
- 11.1
-
selectWithIndex
default FloatList selectWithIndex(FloatIntPredicate predicate)
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
default FloatList rejectWithIndex(FloatIntPredicate predicate)
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
<V> ListIterable<V> collect(FloatToObjectFunction<? extends V> function)
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
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.- Specified by:
collectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
collectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 9.1.
-
equals
boolean equals(java.lang.Object o)
Follows the same general contract asList.equals(Object)
.- Overrides:
equals
in classjava.lang.Object
-
hashCode
int hashCode()
Follows the same general contract asList.hashCode()
.- Overrides:
hashCode
in classjava.lang.Object
-
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
FloatList subList(int fromIndex, int toIndex)
- Since:
- 5.0.
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipFloat
default ListIterable<FloatFloatPair> zipFloat(FloatIterable iterable)
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
default <T> ListIterable<FloatObjectPair<T>> zip(java.lang.Iterable<T> iterable)
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.
-
-