Top Description Methods
org.eclipse.collections.api.factory.map.primitive

public Interface ImmutableDoubleObjectMapFactory

Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.DoubleFunction, org.eclipse.collections.api.map.primitive.ImmutableDoubleObjectMap, .DoubleObjectMap

A factory which creates instances of type ImmutableDoubleObjectMap. This file was automatically generated from template file immutablePrimitiveObjectMapFactory.stg.
Since
4.0.

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableDoubleObjectMap<V>
public <T, V> ImmutableDoubleObjectMap<V>
from(Iterable<T> iterable, DoubleFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction)

Creates an ImmutableDoubleObjectMap from an Iterable<T> by applying keyFunction and valueFunction.

public <V> ImmutableDoubleObjectMap<V>
of()

Same as empty().

public <V> ImmutableDoubleObjectMap<V>
of(double key, V value)

Same as with(double, Object).

public <V> ImmutableDoubleObjectMap<V>
public <V> ImmutableDoubleObjectMap<V>
with()

Same as empty().

public <V> ImmutableDoubleObjectMap<V>
with(double key, V value)

public <V> ImmutableDoubleObjectMap<V>
withAll(DoubleObjectMap<? extends V> map)

Method Detail

emptyback to summary
public <V> ImmutableDoubleObjectMap<V> empty()
Since
6.0
fromback to summary
public <T, V> ImmutableDoubleObjectMap<V> from(Iterable<T> iterable, DoubleFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction)

Creates an ImmutableDoubleObjectMap from an Iterable<T> by applying keyFunction and valueFunction.

Since
10.0
ofback to summary
public <V> ImmutableDoubleObjectMap<V> of()

Same as empty().

ofback to summary
public <V> ImmutableDoubleObjectMap<V> of(double key, V value)

Same as with(double, Object).

ofAllback to summary
public <V> ImmutableDoubleObjectMap<V> ofAll(DoubleObjectMap<? extends V> map)

Same as withAll(DoubleObjectMap).

withback to summary
public <V> ImmutableDoubleObjectMap<V> with()

Same as empty().

withback to summary
public <V> ImmutableDoubleObjectMap<V> with(double key, V value)
withAllback to summary
public <V> ImmutableDoubleObjectMap<V> withAll(DoubleObjectMap<? extends V> map)