Enum ImmutableIntObjectMapFactoryImpl
java.lang.Object
java.lang.Enum<ImmutableIntObjectMapFactoryImpl>
org.eclipse.collections.impl.map.immutable.primitive.ImmutableIntObjectMapFactoryImpl
- All Implemented Interfaces:
Serializable,Comparable<ImmutableIntObjectMapFactoryImpl>,java.lang.constant.Constable,ImmutableIntObjectMapFactory
public enum ImmutableIntObjectMapFactoryImpl extends Enum<ImmutableIntObjectMapFactoryImpl> implements ImmutableIntObjectMapFactory
ImmutableIntObjectMapFactoryImpl is a factory implementation which creates instances of type
ImmutableIntObjectMap.
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> ImmutableIntObjectMap<V>empty()<T, V> ImmutableIntObjectMap<V>from(Iterable<T> iterable, IntFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Creates anImmutableIntObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<V> ImmutableIntObjectMap<V>of()Same asImmutableIntObjectMapFactory.empty().<V> ImmutableIntObjectMap<V>of(int key, V value)<V> ImmutableIntObjectMap<V>ofAll(IntObjectMap<? extends V> map)static ImmutableIntObjectMapFactoryImplvalueOf(String name)Returns the enum constant of this type with the specified name.static ImmutableIntObjectMapFactoryImpl[]values()Returns an array containing the constants of this enum type, in the order they are declared.<V> ImmutableIntObjectMap<V>with()Same asImmutableIntObjectMapFactory.empty().<V> ImmutableIntObjectMap<V>with(int key, V value)<V> ImmutableIntObjectMap<V>withAll(IntObjectMap<? 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 interfaceImmutableIntObjectMapFactory
-
of
Description copied from interface:ImmutableIntObjectMapFactorySame asImmutableIntObjectMapFactory.empty().- Specified by:
ofin interfaceImmutableIntObjectMapFactory
-
with
Description copied from interface:ImmutableIntObjectMapFactorySame asImmutableIntObjectMapFactory.empty().- Specified by:
within interfaceImmutableIntObjectMapFactory
-
of
Description copied from interface:ImmutableIntObjectMapFactory- Specified by:
ofin interfaceImmutableIntObjectMapFactory
-
with
- Specified by:
within interfaceImmutableIntObjectMapFactory
-
ofAll
Description copied from interface:ImmutableIntObjectMapFactory- Specified by:
ofAllin interfaceImmutableIntObjectMapFactory
-
withAll
- Specified by:
withAllin interfaceImmutableIntObjectMapFactory
-
from
public <T, V> ImmutableIntObjectMap<V> from(Iterable<T> iterable, IntFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Description copied from interface:ImmutableIntObjectMapFactoryCreates anImmutableIntObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.- Specified by:
fromin interfaceImmutableIntObjectMapFactory
-