Interface FloatList
- All Superinterfaces:
FloatIterable
,OrderedFloatIterable
,PrimitiveIterable
,ReversibleFloatIterable
- All Known Subinterfaces:
ImmutableFloatList
,MutableFloatList
- All Known Implementing Classes:
FloatArrayList
,SynchronizedFloatList
,UnmodifiableFloatList
public interface FloatList extends ReversibleFloatIterable
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
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(Object o)
Follows the same general contract asList.equals(Object)
.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.FloatList
select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for 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(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, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf
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.
-
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:
List.subList(int fromIndex, int toIndex)
-
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.
-