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

public Interface MutableFloatList

extends MutableFloatCollection, FloatList
Imports
java.util.Comparator, .Random, org.eclipse.collections.api.block.comparator.primitive.FloatComparator, 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.FloatProcedure, org.eclipse.collections.api.collection.primitive.MutableFloatCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.FloatFloatPair, .FloatObjectPair

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

Method Summary

Modifier and TypeMethod and Description
public boolean
addAllAtIndex(int index, float... source)

public boolean
addAllAtIndex(int index, FloatIterable source)

public void
addAtIndex(int index, float element)

public MutableFloatList
public MutableFloatList
public MutableList<Float>
public <V> MutableList<V>
collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.collect, org.eclipse.collections.api.list.primitive.FloatList.collect.

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

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

Overrides default org.eclipse.collections.api.list.primitive.FloatList.collectWithIndex.

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

public MutableFloatList
public default MutableFloatList
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableFloatCollection.newEmpty.

Creates a new empty mutable version of the same List type.

public MutableFloatList
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.reject, org.eclipse.collections.api.list.primitive.FloatList.reject.

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

public default MutableFloatList
rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.rejectWithIndex.

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

public float
removeAtIndex(int index)

public MutableFloatList
public MutableFloatList
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.select, org.eclipse.collections.api.list.primitive.FloatList.select.

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

public default MutableFloatList
selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.selectWithIndex.

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

public float
set(int index, float element)

public default MutableFloatList
shuffleThis()

Randomly permutes this list mutating its contents and returns the same list (this).

public default MutableFloatList
shuffleThis(Random rnd)

Randomly permutes this list mutating its contents and returns the same list (this).

public MutableFloatList
sortThis()

Sorts this list mutating its contents and returns the same mutable list (this).

public default MutableFloatList
sortThis(FloatComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

public default <T> MutableFloatList
sortThisBy(FloatToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

public default <T> MutableFloatList
sortThisBy(FloatToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

public MutableFloatList
public default void
swap(int index1, int index2)

public default MutableFloatList
public ImmutableFloatList
public MutableFloatList
public MutableFloatList
public MutableFloatList
public MutableFloatList
public MutableFloatList
public default <T> MutableList<FloatObjectPair<T>>
zip(Iterable<T> list)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.zip.

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

public default MutableList<FloatFloatPair>
zipFloat(FloatIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.zipFloat.

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

Inherited from org.eclipse.collections.api.collection.primitive.MutableFloatCollection:
addaddAlladdAllclearfloatIteratorremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.list.primitive.FloatList:
binarySearchdotProductequalsforEachInBothgethashCodelastIndexOf

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, float... source)
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, FloatIterable source)
addAtIndexback to summary
public void addAtIndex(int index, float element)
asSynchronizedback to summary
public MutableFloatList asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableFloatList asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableList<Float> boxed()
collectback to summary
public <V> MutableList<V> collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.collect, org.eclipse.collections.api.list.primitive.FloatList.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.

collectWithIndexback to summary
public default <V> MutableList<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.collectWithIndex.

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

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

Redeclares org.eclipse.collections.api.list.primitive.FloatList.distinct.

Annotations
@Override
Since
6.0.
newEmptyback to summary
public default MutableFloatList newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableFloatCollection.newEmpty.

Creates a new empty mutable version of the same List type.

Since
9.2.
rejectback to summary
public MutableFloatList reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.reject, org.eclipse.collections.api.list.primitive.FloatList.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 MutableFloatList rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.rejectWithIndex.

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

Annotations
@Override
Since
11.1.
removeAtIndexback to summary
public float removeAtIndex(int index)
reverseThisback to summary
public MutableFloatList reverseThis()
selectback to summary
public MutableFloatList select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.select, org.eclipse.collections.api.list.primitive.FloatList.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 MutableFloatList selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.selectWithIndex.

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

Annotations
@Override
Since
11.1.
setback to summary
public float set(int index, float element)
shuffleThisback to summary
public default MutableFloatList shuffleThis()

Randomly permutes this list mutating its contents and returns the same list (this). Uses java.util.Random as the source of randomness.

shuffleThisback to summary
public default MutableFloatList shuffleThis(Random rnd)

Randomly permutes this list mutating its contents and returns the same list (this). Implements the Fisher-Yates shuffle algorithm using the provided source of randomness.

sortThisback to summary
public MutableFloatList sortThis()

Sorts this list mutating its contents and returns the same mutable list (this).

sortThisback to summary
public default MutableFloatList sortThis(FloatComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

sortThisByback to summary
public default <T> MutableFloatList sortThisBy(FloatToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

sortThisByback to summary
public default <T> MutableFloatList sortThisBy(FloatToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

subListback to summary
public MutableFloatList subList(int fromIndex, int toIndex)

Redeclares org.eclipse.collections.api.list.primitive.FloatList.subList.

Annotations
@Override
swapback to summary
public default void swap(int index1, int index2)
tapback to summary
public default MutableFloatList tap(FloatProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableFloatCollection.tap, org.eclipse.collections.api.list.primitive.FloatList.tap.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.toImmutable, org.eclipse.collections.api.list.primitive.FloatList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableFloatList toReversed()

Redeclares org.eclipse.collections.api.list.primitive.FloatList.toReversed.

Annotations
@Override
withback to summary
public MutableFloatList with(float element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.with.

Annotations
@Override
withAllback to summary
public MutableFloatList withAll(FloatIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withAll.

Annotations
@Override
withoutback to summary
public MutableFloatList without(float element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.without.

Annotations
@Override
withoutAllback to summary
public MutableFloatList withoutAll(FloatIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withoutAll.

Annotations
@Override
zipback to summary
public default <T> MutableList<FloatObjectPair<T>> zip(Iterable<T> list)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.zip.

Returns a MutableList formed from this MutableFloatList 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 MutableList<FloatFloatPair> zipFloat(FloatIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.FloatList.zipFloat.

Returns a MutableList formed from this MutableFloatList 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.