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 anMutableIntObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<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 MutableIntObjectMapFactoryImplvalueOf(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:
emptyin interfaceMutableIntObjectMapFactory
-
of
Description copied from interface:MutableIntObjectMapFactorySame asMutableIntObjectMapFactory.empty().- Specified by:
ofin interfaceMutableIntObjectMapFactory
-
with
Description copied from interface:MutableIntObjectMapFactorySame asMutableIntObjectMapFactory.empty().- Specified by:
within interfaceMutableIntObjectMapFactory
-
ofInitialCapacity
Description copied from interface:MutableIntObjectMapFactorySame asMutableIntObjectMapFactory.empty(). but takes in an initial capacity- Specified by:
ofInitialCapacityin interfaceMutableIntObjectMapFactory
-
withInitialCapacity
Description copied from interface:MutableIntObjectMapFactorySame asMutableIntObjectMapFactory.empty(). but takes in an initial capacity- Specified by:
withInitialCapacityin interfaceMutableIntObjectMapFactory
-
ofAll
Description copied from interface:MutableIntObjectMapFactory- Specified by:
ofAllin interfaceMutableIntObjectMapFactory
-
withAll
- Specified by:
withAllin 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:MutableIntObjectMapFactoryCreates anMutableIntObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.- Specified by:
fromin interfaceMutableIntObjectMapFactory
-