Enum MutableShortListFactoryImpl
java.lang.Object
java.lang.Enum<MutableShortListFactoryImpl>
org.eclipse.collections.impl.list.mutable.primitive.MutableShortListFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<MutableShortListFactoryImpl>
,java.lang.constant.Constable
,MutableShortListFactory
public enum MutableShortListFactoryImpl extends Enum<MutableShortListFactoryImpl> implements MutableShortListFactory
MutableShortListFactoryImpl is a factory implementation which creates instances of type
MutableShortList
.
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 MutableShortList
empty()
MutableShortList
of()
Same asMutableShortListFactory.empty()
.MutableShortList
of(short... items)
MutableShortList
ofAll(Iterable<Short> iterable)
MutableShortList
ofAll(ShortIterable items)
static MutableShortListFactoryImpl
valueOf(String name)
Returns the enum constant of this type with the specified name.static MutableShortListFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.MutableShortList
with()
Same asMutableShortListFactory.empty()
.MutableShortList
with(short... items)
Creates a new list using the passeditems
argument as the backing store.MutableShortList
withAll(Iterable<Short> iterable)
MutableShortList
withAll(ShortIterable items)
MutableShortList
withInitialCapacity(int capacity)
Same asMutableShortListFactory.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.MutableShortListFactory
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 interfaceMutableShortListFactory
-
of
Description copied from interface:MutableShortListFactory
Same asMutableShortListFactory.empty()
.- Specified by:
of
in interfaceMutableShortListFactory
-
with
Description copied from interface:MutableShortListFactory
Same asMutableShortListFactory.empty()
.- Specified by:
with
in interfaceMutableShortListFactory
-
withInitialCapacity
Description copied from interface:MutableShortListFactory
Same asMutableShortListFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableShortListFactory
-
of
Description copied from interface:MutableShortListFactory
- Specified by:
of
in interfaceMutableShortListFactory
-
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 interfaceMutableShortListFactory
-
ofAll
Description copied from interface:MutableShortListFactory
- Specified by:
ofAll
in interfaceMutableShortListFactory
-
withAll
- Specified by:
withAll
in interfaceMutableShortListFactory
-
ofAll
Description copied from interface:MutableShortListFactory
- Specified by:
ofAll
in interfaceMutableShortListFactory
- Since:
- 10.0
-
withAll
- Specified by:
withAll
in interfaceMutableShortListFactory
- Since:
- 10.0
-