Class MutableLongListFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.list.mutable.primitive.MutableLongListFactoryImpl
-
- All Implemented Interfaces:
MutableLongListFactory
public class MutableLongListFactoryImpl extends java.lang.Object implements MutableLongListFactory
MutableLongListFactoryImpl is a factory implementation which creates instances of typeMutableLongList
. This file was automatically generated from template file mutablePrimitiveListFactoryImpl.stg.- Since:
- 6.0.
-
-
Field Summary
Fields Modifier and Type Field Description static MutableLongListFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MutableLongListFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableLongList
empty()
MutableLongList
of()
Same asMutableLongListFactory.empty()
.MutableLongList
of(long... items)
Same asMutableLongListFactory.with(long[])
.MutableLongList
ofAll(java.lang.Iterable<java.lang.Long> iterable)
MutableLongList
ofAll(java.util.stream.LongStream items)
MutableLongList
ofAll(LongIterable items)
MutableLongList
with()
Same asMutableLongListFactory.empty()
.MutableLongList
with(long... items)
Creates a new list using the passeditems
argument as the backing store.MutableLongList
withAll(java.lang.Iterable<java.lang.Long> iterable)
MutableLongList
withAll(java.util.stream.LongStream items)
MutableLongList
withAll(LongIterable items)
MutableLongList
withInitialCapacity(int capacity)
Same asMutableLongListFactory.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.MutableLongListFactory
wrapCopy
-
-
-
-
Field Detail
-
INSTANCE
public static final MutableLongListFactory INSTANCE
-
-
Method Detail
-
empty
public MutableLongList empty()
- Specified by:
empty
in interfaceMutableLongListFactory
-
of
public MutableLongList of()
Description copied from interface:MutableLongListFactory
Same asMutableLongListFactory.empty()
.- Specified by:
of
in interfaceMutableLongListFactory
-
with
public MutableLongList with()
Description copied from interface:MutableLongListFactory
Same asMutableLongListFactory.empty()
.- Specified by:
with
in interfaceMutableLongListFactory
-
withInitialCapacity
public MutableLongList withInitialCapacity(int capacity)
Description copied from interface:MutableLongListFactory
Same asMutableLongListFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableLongListFactory
-
of
public MutableLongList of(long... items)
Description copied from interface:MutableLongListFactory
Same asMutableLongListFactory.with(long[])
.- Specified by:
of
in interfaceMutableLongListFactory
-
with
public MutableLongList with(long... 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 interfaceMutableLongListFactory
-
ofAll
public MutableLongList ofAll(LongIterable items)
Description copied from interface:MutableLongListFactory
- Specified by:
ofAll
in interfaceMutableLongListFactory
-
withAll
public MutableLongList withAll(LongIterable items)
- Specified by:
withAll
in interfaceMutableLongListFactory
-
ofAll
public MutableLongList ofAll(java.lang.Iterable<java.lang.Long> iterable)
Description copied from interface:MutableLongListFactory
- Specified by:
ofAll
in interfaceMutableLongListFactory
- Since:
- 10.0
-
withAll
public MutableLongList withAll(java.lang.Iterable<java.lang.Long> iterable)
- Specified by:
withAll
in interfaceMutableLongListFactory
- Since:
- 10.0
-
ofAll
public MutableLongList ofAll(java.util.stream.LongStream items)
- Specified by:
ofAll
in interfaceMutableLongListFactory
- Since:
- 9.0
-
withAll
public MutableLongList withAll(java.util.stream.LongStream items)
- Specified by:
withAll
in interfaceMutableLongListFactory
- Since:
- 9.0
-
-