Enum MutableShortObjectMapFactoryImpl
java.lang.Object
java.lang.Enum<MutableShortObjectMapFactoryImpl>
org.eclipse.collections.impl.map.mutable.primitive.MutableShortObjectMapFactoryImpl
- All Implemented Interfaces:
Serializable,Comparable<MutableShortObjectMapFactoryImpl>,java.lang.constant.Constable,MutableShortObjectMapFactory
public enum MutableShortObjectMapFactoryImpl extends Enum<MutableShortObjectMapFactoryImpl> implements MutableShortObjectMapFactory
MutableShortObjectMapFactoryImpl is a factory implementation which creates instances of type
MutableShortObjectMap.
This file was automatically generated from template file mutablePrimitiveObjectMapFactoryImpl.stg.- Since:
- 6.0.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE -
Method Summary
Modifier and Type Method Description <V> MutableShortObjectMap<V>empty()<T, V> MutableShortObjectMap<V>from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Creates anMutableShortObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<V> MutableShortObjectMap<V>of()Same asMutableShortObjectMapFactory.empty().<V> MutableShortObjectMap<V>ofAll(ShortObjectMap<? extends V> map)<V> MutableShortObjectMap<V>ofInitialCapacity(int capacity)Same asMutableShortObjectMapFactory.empty().static MutableShortObjectMapFactoryImplvalueOf(String name)Returns the enum constant of this type with the specified name.static MutableShortObjectMapFactoryImpl[]values()Returns an array containing the constants of this enum type, in the order they are declared.<V> MutableShortObjectMap<V>with()Same asMutableShortObjectMapFactory.empty().<V> MutableShortObjectMap<V>withAll(ShortObjectMap<? extends V> map)<V> MutableShortObjectMap<V>withInitialCapacity(int capacity)Same asMutableShortObjectMapFactory.empty().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 interfaceMutableShortObjectMapFactory
-
of
Description copied from interface:MutableShortObjectMapFactorySame asMutableShortObjectMapFactory.empty().- Specified by:
ofin interfaceMutableShortObjectMapFactory
-
with
Description copied from interface:MutableShortObjectMapFactorySame asMutableShortObjectMapFactory.empty().- Specified by:
within interfaceMutableShortObjectMapFactory
-
ofInitialCapacity
Description copied from interface:MutableShortObjectMapFactorySame asMutableShortObjectMapFactory.empty(). but takes in an initial capacity- Specified by:
ofInitialCapacityin interfaceMutableShortObjectMapFactory
-
withInitialCapacity
Description copied from interface:MutableShortObjectMapFactorySame asMutableShortObjectMapFactory.empty(). but takes in an initial capacity- Specified by:
withInitialCapacityin interfaceMutableShortObjectMapFactory
-
ofAll
Description copied from interface:MutableShortObjectMapFactory- Specified by:
ofAllin interfaceMutableShortObjectMapFactory
-
withAll
- Specified by:
withAllin interfaceMutableShortObjectMapFactory
-
from
public <T, V> MutableShortObjectMap<V> from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Description copied from interface:MutableShortObjectMapFactoryCreates anMutableShortObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.- Specified by:
fromin interfaceMutableShortObjectMapFactory
-