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

public Interface MutableCharShortMapFactory

Imports
org.eclipse.collections.api.block.function.primitive.CharFunction, .ShortFunction, org.eclipse.collections.api.map.primitive.MutableCharShortMap, .CharShortMap

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

Method Summary

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

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

public MutableCharShortMap
of()

Same as empty().

public default MutableCharShortMap
of(char key, short value)

public default MutableCharShortMap
of(char key1, short value1, char key2, short value2)

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

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

public MutableCharShortMap
public MutableCharShortMap
ofInitialCapacity(int capacity)

Same as empty().

public MutableCharShortMap
with()

Same as empty().

public default MutableCharShortMap
with(char key, short value)

public default MutableCharShortMap
with(char key1, short value1, char key2, short value2)

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

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

public MutableCharShortMap
public MutableCharShortMap
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

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

Since
10.0
ofback to summary
public MutableCharShortMap of()

Same as empty().

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

Same as withAll(CharShortMap).

ofInitialCapacityback to summary
public MutableCharShortMap ofInitialCapacity(int capacity)

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

withback to summary
public MutableCharShortMap with()

Same as empty().

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

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