Top Description Methods
org.eclipse.collections.api.list.primitive

public Interface FloatList

extends ReversibleFloatIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.ImmutableFloatList, org.eclipse.collections.api.list.primitive.MutableFloatList
Imports
org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.block.function.primitive.FloatIntToObjectFunction, .FloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatIntPredicate, .FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatFloatProcedure, .FloatProcedure, org.eclipse.collections.api.list.ListIterable, org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable, org.eclipse.collections.api.tuple.primitive.FloatFloatPair, .FloatObjectPair, java.util.Objects

This file was automatically generated from template file primitiveList.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public int
binarySearch(float value)

public <V> ListIterable<V>
collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default <V> ListIterable<V>
collectWithIndex(FloatIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.collectWithIndex.

Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.

public FloatList
public double
public boolean
equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

public default void
forEachInBoth(FloatList other, FloatFloatProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

public float
get(int index)

public int
hashCode()

Follows the same general contract as java.util.List#hashCode().

public int
lastIndexOf(float value)

public FloatList
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

public default FloatList
rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.rejectWithIndex.

Returns a new FloatList excluding all elements with corresponding indexes matching the specified predicate.

public FloatList
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

public default FloatList
selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.selectWithIndex.

Returns a new FloatList including all elements with corresponding indexes matching the specified predicate.

public FloatList
subList(int fromIndex, int toIndex)

public default FloatList
public ImmutableFloatList
toImmutable()

Returns an immutable copy of this list.

public FloatList
public default <T> ListIterable<FloatObjectPair<T>>
zip(Iterable<T> iterable)

Returns a ListIterable formed from this FloatList and a ListIterable by combining corresponding elements in pairs.

public default ListIterable<FloatFloatPair>
zipFloat(FloatIterable iterable)

Returns a ListIterable formed from this FloatList and another FloatList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable:
asReversedgetLastinjectIntoWithIndex

Method Detail

binarySearchback to summary
public int binarySearch(float value)
collectback to summary
public <V> ListIterable<V> collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.collect.

Doc from org.eclipse.collections.api.FloatIterable.collect.

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.

Annotations
@Override
collectWithIndexback to summary
public default <V> ListIterable<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.collectWithIndex.

Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
distinctback to summary
public FloatList distinct()

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public double dotProduct(FloatList list)
equalsback to summary
public boolean equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachInBothback to summary
public 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
getback to summary
public float get(int index)
hashCodeback to summary
public int hashCode()

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(float value)
rejectback to summary
public FloatList reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.reject.

Doc from org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

Annotations
@Override
rejectWithIndexback to summary
public default FloatList rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.rejectWithIndex.

Returns a new FloatList excluding all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
selectback to summary
public FloatList select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.select.

Doc from org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

Annotations
@Override
selectWithIndexback to summary
public default FloatList selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.selectWithIndex.

Returns a new FloatList including all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
subListback to summary
public FloatList subList(int fromIndex, int toIndex)
Since
5.0.
See Also
java.util.List#subList(int fromIndex, int toIndex)
tapback to summary
public default FloatList tap(FloatProcedure procedure)

Overrides default org.eclipse.collections.api.FloatIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableFloatList toImmutable()

Returns an immutable copy of this list. If the list is immutable, it returns itself.

toReversedback to summary
public FloatList toReversed()

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.toReversed.

Annotations
@Override
Since
5.0.
zipback to summary
public default <T> ListIterable<FloatObjectPair<T>> zip(Iterable<T> iterable)

Returns a ListIterable formed from this FloatList and a ListIterable 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.
zipFloatback to summary
public default ListIterable<FloatFloatPair> zipFloat(FloatIterable iterable)

Returns a ListIterable formed from this FloatList and another FloatList by combining corresponding elements in pairs. If one of the two FloatLists is longer than the other, its remaining elements are ignored.

Since
9.1.