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 MutableIntListFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description MutableIntListFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableIntListempty()MutableIntListof()Same asMutableIntListFactory.empty().MutableIntListof(int... items)Same asMutableIntListFactory.with(int[]).MutableIntListofAll(java.lang.Iterable<java.lang.Integer> iterable)MutableIntListofAll(java.util.stream.IntStream items)MutableIntListofAll(IntIterable items)MutableIntListwith()Same asMutableIntListFactory.empty().MutableIntListwith(int... items)Creates a new list using the passeditemsargument as the backing store.MutableIntListwithAll(java.lang.Iterable<java.lang.Integer> iterable)MutableIntListwithAll(java.util.stream.IntStream items)MutableIntListwithAll(IntIterable items)MutableIntListwithInitialCapacity(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:
emptyin interfaceMutableIntListFactory
-
of
public MutableIntList of()
Description copied from interface:MutableIntListFactorySame asMutableIntListFactory.empty().- Specified by:
ofin interfaceMutableIntListFactory
-
with
public MutableIntList with()
Description copied from interface:MutableIntListFactorySame asMutableIntListFactory.empty().- Specified by:
within interfaceMutableIntListFactory
-
withInitialCapacity
public MutableIntList withInitialCapacity(int capacity)
Description copied from interface:MutableIntListFactorySame asMutableIntListFactory.empty(). but takes in an initial capacity- Specified by:
withInitialCapacityin interfaceMutableIntListFactory
-
of
public MutableIntList of(int... items)
Description copied from interface:MutableIntListFactorySame asMutableIntListFactory.with(int[]).- 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)
Description copied from interface:MutableIntListFactory- Specified by:
ofAllin interfaceMutableIntListFactory
-
withAll
public MutableIntList withAll(IntIterable items)
- Specified by:
withAllin interfaceMutableIntListFactory
-
ofAll
public MutableIntList ofAll(java.lang.Iterable<java.lang.Integer> iterable)
Description copied from interface:MutableIntListFactory- Specified by:
ofAllin interfaceMutableIntListFactory- Since:
- 10.0
-
withAll
public MutableIntList withAll(java.lang.Iterable<java.lang.Integer> iterable)
- Specified by:
withAllin interfaceMutableIntListFactory- Since:
- 10.0
-
ofAll
public MutableIntList ofAll(java.util.stream.IntStream items)
- Specified by:
ofAllin interfaceMutableIntListFactory- Since:
- 9.0
-
withAll
public MutableIntList withAll(java.util.stream.IntStream items)
- Specified by:
withAllin interfaceMutableIntListFactory- Since:
- 9.0
-
-