Enum ImmutableDoubleObjectMapFactoryImpl
java.lang.Object
java.lang.Enum<ImmutableDoubleObjectMapFactoryImpl>
org.eclipse.collections.impl.map.immutable.primitive.ImmutableDoubleObjectMapFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<ImmutableDoubleObjectMapFactoryImpl>
,java.lang.constant.Constable
,ImmutableDoubleObjectMapFactory
public enum ImmutableDoubleObjectMapFactoryImpl extends Enum<ImmutableDoubleObjectMapFactoryImpl> implements ImmutableDoubleObjectMapFactory
ImmutableDoubleObjectMapFactoryImpl is a factory implementation which creates instances of type
ImmutableDoubleObjectMap
.
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> ImmutableDoubleObjectMap<V>
empty()
<T, V> ImmutableDoubleObjectMap<V>
from(Iterable<T> iterable, DoubleFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)
Creates anImmutableDoubleObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.<V> ImmutableDoubleObjectMap<V>
of()
<V> ImmutableDoubleObjectMap<V>
of(double key, V value)
<V> ImmutableDoubleObjectMap<V>
ofAll(DoubleObjectMap<? extends V> map)
static ImmutableDoubleObjectMapFactoryImpl
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImmutableDoubleObjectMapFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.<V> ImmutableDoubleObjectMap<V>
with()
<V> ImmutableDoubleObjectMap<V>
with(double key, V value)
<V> ImmutableDoubleObjectMap<V>
withAll(DoubleObjectMap<? 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 interfaceImmutableDoubleObjectMapFactory
-
of
Description copied from interface:ImmutableDoubleObjectMapFactory
- Specified by:
of
in interfaceImmutableDoubleObjectMapFactory
-
with
Description copied from interface:ImmutableDoubleObjectMapFactory
- Specified by:
with
in interfaceImmutableDoubleObjectMapFactory
-
of
Description copied from interface:ImmutableDoubleObjectMapFactory
- Specified by:
of
in interfaceImmutableDoubleObjectMapFactory
-
with
- Specified by:
with
in interfaceImmutableDoubleObjectMapFactory
-
ofAll
Description copied from interface:ImmutableDoubleObjectMapFactory
- Specified by:
ofAll
in interfaceImmutableDoubleObjectMapFactory
-
withAll
- Specified by:
withAll
in interfaceImmutableDoubleObjectMapFactory
-
from
public <T, V> ImmutableDoubleObjectMap<V> from(Iterable<T> iterable, DoubleFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Description copied from interface:ImmutableDoubleObjectMapFactory
Creates anImmutableDoubleObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceImmutableDoubleObjectMapFactory
-