Class MutableIntListFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.list.mutable.primitive.MutableIntListFactoryImpl
-
- All Implemented Interfaces:
MutableIntListFactory
public class MutableIntListFactoryImpl extends 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 MutableIntListFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description MutableIntListFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableIntListempty()MutableIntListof()MutableIntListof(int... items)MutableIntListofAll(Iterable<Integer> iterable)MutableIntListofAll(IntStream items)MutableIntListofAll(IntIterable items)MutableIntListwith()MutableIntListwith(int... items)Creates a new list using the passeditemsargument as the backing store.MutableIntListwithAll(Iterable<Integer> iterable)MutableIntListwithAll(IntStream items)MutableIntListwithAll(IntIterable items)MutableIntListwithInitialCapacity(int capacity)-
Methods inherited from class java.lang.Object
equals, 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:
emptyin interfaceMutableIntListFactory
-
of
public MutableIntList of()
- Specified by:
ofin interfaceMutableIntListFactory
-
with
public MutableIntList with()
- Specified by:
within interfaceMutableIntListFactory
-
withInitialCapacity
public MutableIntList withInitialCapacity(int capacity)
- Specified by:
withInitialCapacityin interfaceMutableIntListFactory
-
of
public MutableIntList of(int... items)
- Specified by:
ofin interfaceMutableIntListFactory
-
with
public MutableIntList with(int... items)
Creates a new list using the passeditemsargument 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:
within interfaceMutableIntListFactory
-
ofAll
public MutableIntList ofAll(IntIterable items)
- Specified by:
ofAllin interfaceMutableIntListFactory
-
withAll
public MutableIntList withAll(IntIterable items)
- Specified by:
withAllin interfaceMutableIntListFactory
-
ofAll
public MutableIntList ofAll(Iterable<Integer> iterable)
- Specified by:
ofAllin interfaceMutableIntListFactory- Since:
- 10.0
-
withAll
public MutableIntList withAll(Iterable<Integer> iterable)
- Specified by:
withAllin interfaceMutableIntListFactory- Since:
- 10.0
-
ofAll
public MutableIntList ofAll(IntStream items)
- Specified by:
ofAllin interfaceMutableIntListFactory- Since:
- 9.0
-
withAll
public MutableIntList withAll(IntStream items)
- Specified by:
withAllin interfaceMutableIntListFactory- Since:
- 9.0
-
-