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

public Interface ImmutableObjectLongMapFactory

Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.LongFunction, org.eclipse.collections.api.map.primitive.ImmutableObjectLongMap, .ObjectLongMap

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

Method Summary

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

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

public <K> ImmutableObjectLongMap<K>
of()

Same as empty().

public <K> ImmutableObjectLongMap<K>
of(K key, long value)

Same as with(Object, long).

public <K> ImmutableObjectLongMap<K>
ofAll(ObjectLongMap<? extends K> map)

Same as withAll(ObjectLongMap).

public <K> ImmutableObjectLongMap<K>
with()

Same as empty().

public <K> ImmutableObjectLongMap<K>
with(K key, long value)

public <K> ImmutableObjectLongMap<K>
withAll(ObjectLongMap<? extends K> map)

Method Detail

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

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

Since
10.0
ofback to summary
public <K> ImmutableObjectLongMap<K> of()

Same as empty().

ofback to summary
public <K> ImmutableObjectLongMap<K> of(K key, long value)

Same as with(Object, long).

ofAllback to summary
public <K> ImmutableObjectLongMap<K> ofAll(ObjectLongMap<? extends K> map)

Same as withAll(ObjectLongMap).

withback to summary
public <K> ImmutableObjectLongMap<K> with()

Same as empty().

withback to summary
public <K> ImmutableObjectLongMap<K> with(K key, long value)
withAllback to summary
public <K> ImmutableObjectLongMap<K> withAll(ObjectLongMap<? extends K> map)