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 anImmutableIntObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.<V> ImmutableIntObjectMap<V>
of()
Same asImmutableIntObjectMapFactory.empty()
.<V> ImmutableIntObjectMap<V>
of(int key, V value)
<V> ImmutableIntObjectMap<V>
ofAll(IntObjectMap<? extends V> map)
static ImmutableIntObjectMapFactoryImpl
valueOf(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:
empty
in interfaceImmutableIntObjectMapFactory
-
of
Description copied from interface:ImmutableIntObjectMapFactory
Same asImmutableIntObjectMapFactory.empty()
.- Specified by:
of
in interfaceImmutableIntObjectMapFactory
-
with
Description copied from interface:ImmutableIntObjectMapFactory
Same asImmutableIntObjectMapFactory.empty()
.- Specified by:
with
in interfaceImmutableIntObjectMapFactory
-
of
Description copied from interface:ImmutableIntObjectMapFactory
- Specified by:
of
in interfaceImmutableIntObjectMapFactory
-
with
- Specified by:
with
in interfaceImmutableIntObjectMapFactory
-
ofAll
Description copied from interface:ImmutableIntObjectMapFactory
- Specified by:
ofAll
in interfaceImmutableIntObjectMapFactory
-
withAll
- Specified by:
withAll
in 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:ImmutableIntObjectMapFactory
Creates anImmutableIntObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceImmutableIntObjectMapFactory
-