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

public Interface MutableShortIntMapFactory

Imports
org.eclipse.collections.api.block.function.primitive.ShortFunction, .IntFunction, org.eclipse.collections.api.map.primitive.MutableShortIntMap, .ShortIntMap

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

Method Summary

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

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

public MutableShortIntMap
of()

Same as empty().

public default MutableShortIntMap
of(short key, int value)

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

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

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

public MutableShortIntMap
public MutableShortIntMap
ofInitialCapacity(int capacity)

Same as empty().

public MutableShortIntMap
with()

Same as empty().

public default MutableShortIntMap
with(short key, int value)

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

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

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

public MutableShortIntMap
public MutableShortIntMap
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

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

Since
10.0
ofback to summary
public MutableShortIntMap of()

Same as empty().

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

Same as withAll(ShortIntMap).

ofInitialCapacityback to summary
public MutableShortIntMap ofInitialCapacity(int capacity)

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

withback to summary
public MutableShortIntMap with()

Same as empty().

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

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