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

public Interface MutableIntShortMapFactory

Imports
org.eclipse.collections.api.block.function.primitive.IntFunction, .ShortFunction, org.eclipse.collections.api.map.primitive.MutableIntShortMap, .IntShortMap

A factory which creates instances of type MutableIntShortMap. This file was automatically generated from template file mutablePrimitivePrimitiveMapFactory.stg.
Since
6.0.

Method Summary

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

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

public MutableIntShortMap
of()

Same as empty().

public default MutableIntShortMap
of(int key, short value)

public default MutableIntShortMap
of(int key1, short value1, int key2, short value2)

public default MutableIntShortMap
of(int key1, short value1, int key2, short value2, int key3, short value3)

public default MutableIntShortMap
of(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4)

public MutableIntShortMap
public MutableIntShortMap
ofInitialCapacity(int capacity)

Same as empty().

public MutableIntShortMap
with()

Same as empty().

public default MutableIntShortMap
with(int key, short value)

public default MutableIntShortMap
with(int key1, short value1, int key2, short value2)

public default MutableIntShortMap
with(int key1, short value1, int key2, short value2, int key3, short value3)

public default MutableIntShortMap
with(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4)

public MutableIntShortMap
public MutableIntShortMap
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

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

Since
10.0
ofback to summary
public MutableIntShortMap of()

Same as empty().

ofback to summary
public default MutableIntShortMap of(int key, short value)
Since
11.1.
ofback to summary
public default MutableIntShortMap of(int key1, short value1, int key2, short value2)
Since
11.1.
ofback to summary
public default MutableIntShortMap of(int key1, short value1, int key2, short value2, int key3, short value3)
Since
11.1.
ofback to summary
public default MutableIntShortMap of(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4)
Since
11.1.
ofAllback to summary
public MutableIntShortMap ofAll(IntShortMap map)

Same as withAll(IntShortMap).

ofInitialCapacityback to summary
public MutableIntShortMap ofInitialCapacity(int capacity)

Same as empty(). but takes in an initial capacity

withback to summary
public MutableIntShortMap with()

Same as empty().

withback to summary
public default MutableIntShortMap with(int key, short value)
Since
11.1.
withback to summary
public default MutableIntShortMap with(int key1, short value1, int key2, short value2)
Since
11.1.
withback to summary
public default MutableIntShortMap with(int key1, short value1, int key2, short value2, int key3, short value3)
Since
11.1.
withback to summary
public default MutableIntShortMap with(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4)
Since
11.1.
withAllback to summary
public MutableIntShortMap withAll(IntShortMap map)
withInitialCapacityback to summary
public MutableIntShortMap withInitialCapacity(int capacity)

Same as empty(). but takes in an initial capacity