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

public Interface ImmutableLongObjectMapFactory

Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.LongFunction, org.eclipse.collections.api.map.primitive.ImmutableLongObjectMap, .LongObjectMap

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

Method Summary

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

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

public <V> ImmutableLongObjectMap<V>
of()

Same as empty().

public <V> ImmutableLongObjectMap<V>
of(long key, V value)

Same as with(long, Object).

public <V> ImmutableLongObjectMap<V>
ofAll(LongObjectMap<? extends V> map)

Same as withAll(LongObjectMap).

public <V> ImmutableLongObjectMap<V>
with()

Same as empty().

public <V> ImmutableLongObjectMap<V>
with(long key, V value)

public <V> ImmutableLongObjectMap<V>
withAll(LongObjectMap<? extends V> map)

Method Detail

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

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

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

Same as empty().

ofback to summary
public <V> ImmutableLongObjectMap<V> of(long key, V value)

Same as with(long, Object).

ofAllback to summary
public <V> ImmutableLongObjectMap<V> ofAll(LongObjectMap<? extends V> map)

Same as withAll(LongObjectMap).

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

Same as empty().

withback to summary
public <V> ImmutableLongObjectMap<V> with(long key, V value)
withAllback to summary
public <V> ImmutableLongObjectMap<V> withAll(LongObjectMap<? extends V> map)