Class MutableDoubleListFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.list.mutable.primitive.MutableDoubleListFactoryImpl
-
- All Implemented Interfaces:
MutableDoubleListFactory
public class MutableDoubleListFactoryImpl extends java.lang.Object implements MutableDoubleListFactory
MutableDoubleListFactoryImpl is a factory implementation which creates instances of typeMutableDoubleList
. This file was automatically generated from template file mutablePrimitiveListFactoryImpl.stg.- Since:
- 6.0.
-
-
Field Summary
Fields Modifier and Type Field Description static MutableDoubleListFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MutableDoubleListFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableDoubleList
empty()
MutableDoubleList
of()
Same asMutableDoubleListFactory.empty()
.MutableDoubleList
of(double... items)
MutableDoubleList
ofAll(java.lang.Iterable<java.lang.Double> iterable)
MutableDoubleList
ofAll(java.util.stream.DoubleStream items)
MutableDoubleList
ofAll(DoubleIterable items)
MutableDoubleList
with()
Same asMutableDoubleListFactory.empty()
.MutableDoubleList
with(double... items)
Creates a new list using the passeditems
argument as the backing store.MutableDoubleList
withAll(java.lang.Iterable<java.lang.Double> iterable)
MutableDoubleList
withAll(java.util.stream.DoubleStream items)
MutableDoubleList
withAll(DoubleIterable items)
MutableDoubleList
withInitialCapacity(int capacity)
Same asMutableDoubleListFactory.empty()
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.factory.list.primitive.MutableDoubleListFactory
wrapCopy
-
-
-
-
Field Detail
-
INSTANCE
public static final MutableDoubleListFactory INSTANCE
-
-
Method Detail
-
empty
public MutableDoubleList empty()
- Specified by:
empty
in interfaceMutableDoubleListFactory
-
of
public MutableDoubleList of()
Description copied from interface:MutableDoubleListFactory
Same asMutableDoubleListFactory.empty()
.- Specified by:
of
in interfaceMutableDoubleListFactory
-
with
public MutableDoubleList with()
Description copied from interface:MutableDoubleListFactory
Same asMutableDoubleListFactory.empty()
.- Specified by:
with
in interfaceMutableDoubleListFactory
-
withInitialCapacity
public MutableDoubleList withInitialCapacity(int capacity)
Description copied from interface:MutableDoubleListFactory
Same asMutableDoubleListFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableDoubleListFactory
-
of
public MutableDoubleList of(double... items)
Description copied from interface:MutableDoubleListFactory
- Specified by:
of
in interfaceMutableDoubleListFactory
-
with
public MutableDoubleList with(double... items)
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. !!!
- Specified by:
with
in interfaceMutableDoubleListFactory
-
ofAll
public MutableDoubleList ofAll(DoubleIterable items)
Description copied from interface:MutableDoubleListFactory
- Specified by:
ofAll
in interfaceMutableDoubleListFactory
-
withAll
public MutableDoubleList withAll(DoubleIterable items)
- Specified by:
withAll
in interfaceMutableDoubleListFactory
-
ofAll
public MutableDoubleList ofAll(java.lang.Iterable<java.lang.Double> iterable)
Description copied from interface:MutableDoubleListFactory
- Specified by:
ofAll
in interfaceMutableDoubleListFactory
- Since:
- 10.0
-
withAll
public MutableDoubleList withAll(java.lang.Iterable<java.lang.Double> iterable)
- Specified by:
withAll
in interfaceMutableDoubleListFactory
- Since:
- 10.0
-
ofAll
public MutableDoubleList ofAll(java.util.stream.DoubleStream items)
- Specified by:
ofAll
in interfaceMutableDoubleListFactory
- Since:
- 9.0
-
withAll
public MutableDoubleList withAll(java.util.stream.DoubleStream items)
- Specified by:
withAll
in interfaceMutableDoubleListFactory
- Since:
- 9.0
-
-