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