Interface MutableDoubleListFactory
- All Known Implementing Classes:
MutableDoubleListFactoryImpl
public interface MutableDoubleListFactory
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 TypeMethodDescriptionempty()
of()
Same asempty()
.of
(double... items) Same aswith(double[])
.Same aswithAll(Iterable)
.ofAll
(DoubleStream items) ofAll
(DoubleIterable items) Same aswithAll(DoubleIterable)
.with()
Same asempty()
.with
(double... items) Creates a new list using the passeditems
argument as the backing store.withAll
(DoubleStream items) withAll
(DoubleIterable items) default MutableDoubleList
withInitialCapacity
(int capacity) Same asempty()
.default MutableDoubleList
wrapCopy
(double... array) Creates a new list by first copying the array passed in.
-
Method Details
-
empty
MutableDoubleList empty() -
of
MutableDoubleList of()Same asempty()
. -
with
MutableDoubleList with()Same asempty()
. -
withInitialCapacity
Same asempty()
. but takes in an initial capacity- Since:
- 10.3
-
of
Same aswith(double[])
. -
with
Creates a new list using the passeditems
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. !!!
-
wrapCopy
Creates a new list by first copying the array passed in. -
ofAll
Same aswithAll(DoubleIterable)
. -
withAll
-
ofAll
Same aswithAll(Iterable)
. -
withAll
-
ofAll
- Since:
- 9.0
-
withAll
- Since:
- 9.0
-