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

public Interface ImmutableIntIntMapFactory

Imports
org.eclipse.collections.api.block.function.primitive.IntFunction, org.eclipse.collections.api.map.primitive.IntIntMap, .ImmutableIntIntMap

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

Method Summary

Modifier and TypeMethod and Description
public ImmutableIntIntMap
public <T> ImmutableIntIntMap
from(Iterable<T> iterable, IntFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)

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

public ImmutableIntIntMap
of()

Same as empty().

public ImmutableIntIntMap
of(int key, int value)

Same as with(int, int).

public ImmutableIntIntMap
public ImmutableIntIntMap
with()

Same as empty().

public ImmutableIntIntMap
with(int key, int value)

public ImmutableIntIntMap

Method Detail

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

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

Since
10.0
ofback to summary
public ImmutableIntIntMap of()

Same as empty().

ofback to summary
public ImmutableIntIntMap of(int key, int value)

Same as with(int, int).

ofAllback to summary
public ImmutableIntIntMap ofAll(IntIntMap map)

Same as withAll(IntIntMap).

withback to summary
public ImmutableIntIntMap with()

Same as empty().

withback to summary
public ImmutableIntIntMap with(int key, int value)
withAllback to summary
public ImmutableIntIntMap withAll(IntIntMap map)