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