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

public Interface ImmutableIntObjectMapFactory

Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.IntFunction, org.eclipse.collections.api.map.primitive.ImmutableIntObjectMap, .IntObjectMap

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

Method Summary

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

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

public <V> ImmutableIntObjectMap<V>
of()

Same as empty().

public <V> ImmutableIntObjectMap<V>
of(int key, V value)

Same as with(int, Object).

public <V> ImmutableIntObjectMap<V>
ofAll(IntObjectMap<? extends V> map)

Same as withAll(IntObjectMap).

public <V> ImmutableIntObjectMap<V>
with()

Same as empty().

public <V> ImmutableIntObjectMap<V>
with(int key, V value)

public <V> ImmutableIntObjectMap<V>
withAll(IntObjectMap<? extends V> map)

Method Detail

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

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

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

Same as empty().

ofback to summary
public <V> ImmutableIntObjectMap<V> of(int key, V value)

Same as with(int, Object).

ofAllback to summary
public <V> ImmutableIntObjectMap<V> ofAll(IntObjectMap<? extends V> map)

Same as withAll(IntObjectMap).

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

Same as empty().

withback to summary
public <V> ImmutableIntObjectMap<V> with(int key, V value)
withAllback to summary
public <V> ImmutableIntObjectMap<V> withAll(IntObjectMap<? extends V> map)