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 anMutableShortObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.<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 MutableShortObjectMapFactoryImpl
valueOf(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:
empty
in interfaceMutableShortObjectMapFactory
-
of
Description copied from interface:MutableShortObjectMapFactory
Same asMutableShortObjectMapFactory.empty()
.- Specified by:
of
in interfaceMutableShortObjectMapFactory
-
with
Description copied from interface:MutableShortObjectMapFactory
Same asMutableShortObjectMapFactory.empty()
.- Specified by:
with
in interfaceMutableShortObjectMapFactory
-
ofInitialCapacity
Description copied from interface:MutableShortObjectMapFactory
Same asMutableShortObjectMapFactory.empty()
. but takes in an initial capacity- Specified by:
ofInitialCapacity
in interfaceMutableShortObjectMapFactory
-
withInitialCapacity
Description copied from interface:MutableShortObjectMapFactory
Same asMutableShortObjectMapFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableShortObjectMapFactory
-
ofAll
Description copied from interface:MutableShortObjectMapFactory
- Specified by:
ofAll
in interfaceMutableShortObjectMapFactory
-
withAll
- Specified by:
withAll
in 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:MutableShortObjectMapFactory
Creates anMutableShortObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceMutableShortObjectMapFactory
-