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

public Interface MutableLongShortMapFactory

Imports
org.eclipse.collections.api.block.function.primitive.LongFunction, .ShortFunction, org.eclipse.collections.api.map.primitive.MutableLongShortMap, .LongShortMap

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

Method Summary

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

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

public MutableLongShortMap
of()

Same as empty().

public default MutableLongShortMap
of(long key, short value)

public default MutableLongShortMap
of(long key1, short value1, long key2, short value2)

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

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

public MutableLongShortMap
public MutableLongShortMap
ofInitialCapacity(int capacity)

Same as empty().

public MutableLongShortMap
with()

Same as empty().

public default MutableLongShortMap
with(long key, short value)

public default MutableLongShortMap
with(long key1, short value1, long key2, short value2)

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

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

public MutableLongShortMap
public MutableLongShortMap
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

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

Since
10.0
ofback to summary
public MutableLongShortMap of()

Same as empty().

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

Same as withAll(LongShortMap).

ofInitialCapacityback to summary
public MutableLongShortMap ofInitialCapacity(int capacity)

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

withback to summary
public MutableLongShortMap with()

Same as empty().

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

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