Enum ImmutableByteObjectMapFactoryImpl
java.lang.Object
java.lang.Enum<ImmutableByteObjectMapFactoryImpl>
org.eclipse.collections.impl.map.immutable.primitive.ImmutableByteObjectMapFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<ImmutableByteObjectMapFactoryImpl>
,java.lang.constant.Constable
,ImmutableByteObjectMapFactory
public enum ImmutableByteObjectMapFactoryImpl extends Enum<ImmutableByteObjectMapFactoryImpl> implements ImmutableByteObjectMapFactory
ImmutableByteObjectMapFactoryImpl is a factory implementation which creates instances of type
ImmutableByteObjectMap
.
This file was automatically generated from template file immutablePrimitiveObjectMapFactoryImpl.stg.- Since:
- 4.0.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description <V> ImmutableByteObjectMap<V>
empty()
<T, V> ImmutableByteObjectMap<V>
from(Iterable<T> iterable, ByteFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)
Creates anImmutableByteObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.<V> ImmutableByteObjectMap<V>
of()
<V> ImmutableByteObjectMap<V>
of(byte key, V value)
<V> ImmutableByteObjectMap<V>
ofAll(ByteObjectMap<? extends V> map)
static ImmutableByteObjectMapFactoryImpl
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImmutableByteObjectMapFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.<V> ImmutableByteObjectMap<V>
with()
<V> ImmutableByteObjectMap<V>
with(byte key, V value)
<V> ImmutableByteObjectMap<V>
withAll(ByteObjectMap<? extends V> map)
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
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 interfaceImmutableByteObjectMapFactory
-
of
Description copied from interface:ImmutableByteObjectMapFactory
- Specified by:
of
in interfaceImmutableByteObjectMapFactory
-
with
Description copied from interface:ImmutableByteObjectMapFactory
- Specified by:
with
in interfaceImmutableByteObjectMapFactory
-
of
Description copied from interface:ImmutableByteObjectMapFactory
- Specified by:
of
in interfaceImmutableByteObjectMapFactory
-
with
- Specified by:
with
in interfaceImmutableByteObjectMapFactory
-
ofAll
Description copied from interface:ImmutableByteObjectMapFactory
- Specified by:
ofAll
in interfaceImmutableByteObjectMapFactory
-
withAll
- Specified by:
withAll
in interfaceImmutableByteObjectMapFactory
-
from
public <T, V> ImmutableByteObjectMap<V> from(Iterable<T> iterable, ByteFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Description copied from interface:ImmutableByteObjectMapFactory
Creates anImmutableByteObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceImmutableByteObjectMapFactory
-