Enum MutableIntListFactoryImpl
java.lang.Object
java.lang.Enum<MutableIntListFactoryImpl>
org.eclipse.collections.impl.list.mutable.primitive.MutableIntListFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<MutableIntListFactoryImpl>
,java.lang.constant.Constable
,MutableIntListFactory
public enum MutableIntListFactoryImpl extends Enum<MutableIntListFactoryImpl> implements MutableIntListFactory
MutableIntListFactoryImpl is a factory implementation which creates instances of type
MutableIntList
.
This file was automatically generated from template file mutablePrimitiveListFactoryImpl.stg.- Since:
- 6.0.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description MutableIntList
empty()
MutableIntList
of()
Same asMutableIntListFactory.empty()
.MutableIntList
of(int... items)
Same asMutableIntListFactory.with(int[])
.MutableIntList
ofAll(Iterable<Integer> iterable)
MutableIntList
ofAll(IntStream items)
MutableIntList
ofAll(IntIterable items)
static MutableIntListFactoryImpl
valueOf(String name)
Returns the enum constant of this type with the specified name.static MutableIntListFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.MutableIntList
with()
Same asMutableIntListFactory.empty()
.MutableIntList
with(int... items)
Creates a new list using the passeditems
argument as the backing store.MutableIntList
withAll(Iterable<Integer> iterable)
MutableIntList
withAll(IntStream items)
MutableIntList
withAll(IntIterable items)
MutableIntList
withInitialCapacity(int capacity)
Same asMutableIntListFactory.empty()
.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.eclipse.collections.api.factory.list.primitive.MutableIntListFactory
wrapCopy
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
empty
- Specified by:
empty
in interfaceMutableIntListFactory
-
of
Description copied from interface:MutableIntListFactory
Same asMutableIntListFactory.empty()
.- Specified by:
of
in interfaceMutableIntListFactory
-
with
Description copied from interface:MutableIntListFactory
Same asMutableIntListFactory.empty()
.- Specified by:
with
in interfaceMutableIntListFactory
-
withInitialCapacity
Description copied from interface:MutableIntListFactory
Same asMutableIntListFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableIntListFactory
-
of
Description copied from interface:MutableIntListFactory
Same asMutableIntListFactory.with(int[])
.- Specified by:
of
in interfaceMutableIntListFactory
-
with
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
Description copied from interface:MutableIntListFactory
- Specified by:
ofAll
in interfaceMutableIntListFactory
-
withAll
- Specified by:
withAll
in interfaceMutableIntListFactory
-
ofAll
Description copied from interface:MutableIntListFactory
- Specified by:
ofAll
in interfaceMutableIntListFactory
- Since:
- 10.0
-
withAll
- Specified by:
withAll
in interfaceMutableIntListFactory
- Since:
- 10.0
-
ofAll
- Specified by:
ofAll
in interfaceMutableIntListFactory
- Since:
- 9.0
-
withAll
- Specified by:
withAll
in interfaceMutableIntListFactory
- Since:
- 9.0
-