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

public Interface MutableObjectShortMapFactory

Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.ShortFunction, org.eclipse.collections.api.map.primitive.MutableObjectShortMap, .ObjectShortMap

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

Method Summary

Modifier and TypeMethod and Description
public <K> MutableObjectShortMap<K>
public <T, K> MutableObjectShortMap<K>
from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ShortFunction<? super T> valueFunction)

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

public <K> MutableObjectShortMap<K>
of()

Same as empty().

public default <K> MutableObjectShortMap<K>
of(K key, short value)

public default <K> MutableObjectShortMap<K>
of(K key1, short value1, K key2, short value2)

public default <K> MutableObjectShortMap<K>
of(K key1, short value1, K key2, short value2, K key3, short value3)

public default <K> MutableObjectShortMap<K>
of(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)

public <K> MutableObjectShortMap<K>
ofAll(ObjectShortMap<? extends K> map)

Same as withAll(ObjectShortMap).

public <K> MutableObjectShortMap<K>
ofInitialCapacity(int capacity)

Same as empty().

public <K> MutableObjectShortMap<K>
with()

Same as empty().

public default <K> MutableObjectShortMap<K>
with(K key, short value)

public default <K> MutableObjectShortMap<K>
with(K key1, short value1, K key2, short value2)

public default <K> MutableObjectShortMap<K>
with(K key1, short value1, K key2, short value2, K key3, short value3)

public default <K> MutableObjectShortMap<K>
with(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)

public <K> MutableObjectShortMap<K>
withAll(ObjectShortMap<? extends K> map)

public <K> MutableObjectShortMap<K>
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

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

Since
10.0
ofback to summary
public <K> MutableObjectShortMap<K> of()

Same as empty().

ofback to summary
public default <K> MutableObjectShortMap<K> of(K key, short value)
Since
11.1.
ofback to summary
public default <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2)
Since
11.1.
ofback to summary
public default <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2, K key3, short value3)
Since
11.1.
ofback to summary
public default <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)
Since
11.1.
ofAllback to summary
public <K> MutableObjectShortMap<K> ofAll(ObjectShortMap<? extends K> map)

Same as withAll(ObjectShortMap).

ofInitialCapacityback to summary
public <K> MutableObjectShortMap<K> ofInitialCapacity(int capacity)

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

withback to summary
public <K> MutableObjectShortMap<K> with()

Same as empty().

withback to summary
public default <K> MutableObjectShortMap<K> with(K key, short value)
Since
11.1.
withback to summary
public default <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2)
Since
11.1.
withback to summary
public default <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2, K key3, short value3)
Since
11.1.
withback to summary
public default <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)
Since
11.1.
withAllback to summary
public <K> MutableObjectShortMap<K> withAll(ObjectShortMap<? extends K> map)
withInitialCapacityback to summary
public <K> MutableObjectShortMap<K> withInitialCapacity(int capacity)

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