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

public Interface MutableFloatListFactory

Imports
org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.list.primitive.MutableFloatList

A factory which creates instances of type MutableFloatList. This file was automatically generated from template file mutablePrimitiveListFactory.stg.
Since
6.0.

Method Summary

Modifier and TypeMethod and Description
public MutableFloatList
public MutableFloatList
of()

Same as empty().

public MutableFloatList
of(float... items)

Same as with(float[]).

public MutableFloatList
public MutableFloatList
public MutableFloatList
with()

Same as empty().

public MutableFloatList
with(float... items)

Creates a new list using the passed items argument as the backing store.

public MutableFloatList
public MutableFloatList
withAll(Iterable<Float> iterable)

public default MutableFloatList
withInitialCapacity(int capacity)

Same as empty().

public default MutableFloatList
wrapCopy(float... array)

Creates a new list by first copying the array passed in.

Method Detail

emptyback to summary
public MutableFloatList empty()
ofback to summary
public MutableFloatList of()

Same as empty().

ofback to summary
public MutableFloatList of(float... items)

Same as with(float[]).

ofAllback to summary
public MutableFloatList ofAll(FloatIterable items)

Same as withAll(FloatIterable).

ofAllback to summary
public MutableFloatList ofAll(Iterable<Float> iterable)

Same as withAll(Iterable).

withback to summary
public MutableFloatList with()

Same as empty().

withback to summary
public MutableFloatList with(float... items)

Creates a new list using the passed items argument as the backing store.

!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else.

withAllback to summary
public MutableFloatList withAll(FloatIterable items)
withAllback to summary
public MutableFloatList withAll(Iterable<Float> iterable)
withInitialCapacityback to summary
public default MutableFloatList withInitialCapacity(int capacity)

Same as empty(). but takes in an initial capacity

Since
10.3
wrapCopyback to summary
public default MutableFloatList wrapCopy(float... array)

Creates a new list by first copying the array passed in.