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

public Interface MutableDoubleListFactory

Imports
org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.list.primitive.MutableDoubleList, java.util.stream.DoubleStream

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

Method Summary

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

Same as empty().

public MutableDoubleList
of(double... items)

Same as with(double[]).

public MutableDoubleList
public MutableDoubleList
public MutableDoubleList
public MutableDoubleList
with()

Same as empty().

public MutableDoubleList
with(double... items)

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

public MutableDoubleList
public MutableDoubleList
withAll(Iterable<Double> iterable)

public MutableDoubleList
public default MutableDoubleList
withInitialCapacity(int capacity)

Same as empty().

public default MutableDoubleList
wrapCopy(double... array)

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

Method Detail

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

Same as empty().

ofback to summary
public MutableDoubleList of(double... items)

Same as with(double[]).

ofAllback to summary
public MutableDoubleList ofAll(DoubleIterable items)

Same as withAll(DoubleIterable).

ofAllback to summary
public MutableDoubleList ofAll(Iterable<Double> iterable)

Same as withAll(Iterable).

ofAllback to summary
public MutableDoubleList ofAll(DoubleStream items)
Since
9.0
withback to summary
public MutableDoubleList with()

Same as empty().

withback to summary
public MutableDoubleList with(double... 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 MutableDoubleList withAll(DoubleIterable items)
withAllback to summary
public MutableDoubleList withAll(Iterable<Double> iterable)
withAllback to summary
public MutableDoubleList withAll(DoubleStream items)
Since
9.0
withInitialCapacityback to summary
public default MutableDoubleList withInitialCapacity(int capacity)

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

Since
10.3
wrapCopyback to summary
public default MutableDoubleList wrapCopy(double... array)

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