Enum ImmutableShortObjectMapFactoryImpl
java.lang.Object
java.lang.Enum<ImmutableShortObjectMapFactoryImpl>
org.eclipse.collections.impl.map.immutable.primitive.ImmutableShortObjectMapFactoryImpl
- All Implemented Interfaces:
Serializable,Comparable<ImmutableShortObjectMapFactoryImpl>,java.lang.constant.Constable,ImmutableShortObjectMapFactory
public enum ImmutableShortObjectMapFactoryImpl extends Enum<ImmutableShortObjectMapFactoryImpl> implements ImmutableShortObjectMapFactory
ImmutableShortObjectMapFactoryImpl is a factory implementation which creates instances of type
ImmutableShortObjectMap.
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> ImmutableShortObjectMap<V>empty()<T, V> ImmutableShortObjectMap<V>from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Creates anImmutableShortObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<V> ImmutableShortObjectMap<V>of()<V> ImmutableShortObjectMap<V>of(short key, V value)<V> ImmutableShortObjectMap<V>ofAll(ShortObjectMap<? extends V> map)static ImmutableShortObjectMapFactoryImplvalueOf(String name)Returns the enum constant of this type with the specified name.static ImmutableShortObjectMapFactoryImpl[]values()Returns an array containing the constants of this enum type, in the order they are declared.<V> ImmutableShortObjectMap<V>with()<V> ImmutableShortObjectMap<V>with(short key, V value)<V> ImmutableShortObjectMap<V>withAll(ShortObjectMap<? 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:
emptyin interfaceImmutableShortObjectMapFactory
-
of
Description copied from interface:ImmutableShortObjectMapFactory- Specified by:
ofin interfaceImmutableShortObjectMapFactory
-
with
Description copied from interface:ImmutableShortObjectMapFactory- Specified by:
within interfaceImmutableShortObjectMapFactory
-
of
Description copied from interface:ImmutableShortObjectMapFactory- Specified by:
ofin interfaceImmutableShortObjectMapFactory
-
with
- Specified by:
within interfaceImmutableShortObjectMapFactory
-
ofAll
Description copied from interface:ImmutableShortObjectMapFactory- Specified by:
ofAllin interfaceImmutableShortObjectMapFactory
-
withAll
- Specified by:
withAllin interfaceImmutableShortObjectMapFactory
-
from
public <T, V> ImmutableShortObjectMap<V> from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Description copied from interface:ImmutableShortObjectMapFactoryCreates anImmutableShortObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.- Specified by:
fromin interfaceImmutableShortObjectMapFactory
-