Enum MutableIntObjectMapFactoryImpl
java.lang.Object
java.lang.Enum<MutableIntObjectMapFactoryImpl>
org.eclipse.collections.impl.map.mutable.primitive.MutableIntObjectMapFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<MutableIntObjectMapFactoryImpl>
,java.lang.constant.Constable
,MutableIntObjectMapFactory
public enum MutableIntObjectMapFactoryImpl extends Enum<MutableIntObjectMapFactoryImpl> implements MutableIntObjectMapFactory
MutableIntObjectMapFactoryImpl is a factory implementation which creates instances of type
MutableIntObjectMap
.
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> MutableIntObjectMap<V>
empty()
<T, V> MutableIntObjectMap<V>
from(Iterable<T> iterable, IntFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)
Creates anMutableIntObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.<V> MutableIntObjectMap<V>
of()
Same asMutableIntObjectMapFactory.empty()
.<V> MutableIntObjectMap<V>
ofAll(IntObjectMap<? extends V> map)
<V> MutableIntObjectMap<V>
ofInitialCapacity(int capacity)
Same asMutableIntObjectMapFactory.empty()
.static MutableIntObjectMapFactoryImpl
valueOf(String name)
Returns the enum constant of this type with the specified name.static MutableIntObjectMapFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.<V> MutableIntObjectMap<V>
with()
Same asMutableIntObjectMapFactory.empty()
.<V> MutableIntObjectMap<V>
withAll(IntObjectMap<? extends V> map)
<V> MutableIntObjectMap<V>
withInitialCapacity(int capacity)
Same asMutableIntObjectMapFactory.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 interfaceMutableIntObjectMapFactory
-
of
Description copied from interface:MutableIntObjectMapFactory
Same asMutableIntObjectMapFactory.empty()
.- Specified by:
of
in interfaceMutableIntObjectMapFactory
-
with
Description copied from interface:MutableIntObjectMapFactory
Same asMutableIntObjectMapFactory.empty()
.- Specified by:
with
in interfaceMutableIntObjectMapFactory
-
ofInitialCapacity
Description copied from interface:MutableIntObjectMapFactory
Same asMutableIntObjectMapFactory.empty()
. but takes in an initial capacity- Specified by:
ofInitialCapacity
in interfaceMutableIntObjectMapFactory
-
withInitialCapacity
Description copied from interface:MutableIntObjectMapFactory
Same asMutableIntObjectMapFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableIntObjectMapFactory
-
ofAll
Description copied from interface:MutableIntObjectMapFactory
- Specified by:
ofAll
in interfaceMutableIntObjectMapFactory
-
withAll
- Specified by:
withAll
in interfaceMutableIntObjectMapFactory
-
from
public <T, V> MutableIntObjectMap<V> from(Iterable<T> iterable, IntFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Description copied from interface:MutableIntObjectMapFactory
Creates anMutableIntObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceMutableIntObjectMapFactory
-