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

public Interface MutableShortShortMapFactory

Imports
org.eclipse.collections.api.block.function.primitive.ShortFunction, org.eclipse.collections.api.map.primitive.MutableShortShortMap, .ShortShortMap

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

Method Summary

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

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

public MutableShortShortMap
of()

Same as empty().

public default MutableShortShortMap
of(short key, short value)

public default MutableShortShortMap
of(short key1, short value1, short key2, short value2)

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

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

public MutableShortShortMap
public MutableShortShortMap
ofInitialCapacity(int capacity)

Same as empty().

public MutableShortShortMap
with()

Same as empty().

public default MutableShortShortMap
with(short key, short value)

public default MutableShortShortMap
with(short key1, short value1, short key2, short value2)

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

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

public MutableShortShortMap
public MutableShortShortMap
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

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

Since
10.0
ofback to summary
public MutableShortShortMap of()

Same as empty().

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

Same as withAll(ShortShortMap).

ofInitialCapacityback to summary
public MutableShortShortMap ofInitialCapacity(int capacity)

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

withback to summary
public MutableShortShortMap with()

Same as empty().

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

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