Interface MutableObjectShortMapFactory
public interface MutableObjectShortMapFactory
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 TypeMethodDescription<K> MutableObjectShortMap<K>empty()<T,K> MutableObjectShortMap<K> from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ShortFunction<? super T> valueFunction) Creates anMutableObjectShortMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<K> MutableObjectShortMap<K>of()Same asempty().default <K> MutableObjectShortMap<K>of(K key, short value) default <K> MutableObjectShortMap<K>of(K key1, short value1, K key2, short value2) default <K> MutableObjectShortMap<K>of(K key1, short value1, K key2, short value2, K key3, short value3) default <K> MutableObjectShortMap<K>of(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4) <K> MutableObjectShortMap<K>ofAll(ObjectShortMap<? extends K> map) Same aswithAll(ObjectShortMap).<K> MutableObjectShortMap<K>ofInitialCapacity(int capacity) Same asempty(). but takes in an initial capacity<K> MutableObjectShortMap<K>with()Same asempty().default <K> MutableObjectShortMap<K>with(K key, short value) default <K> MutableObjectShortMap<K>with(K key1, short value1, K key2, short value2) default <K> MutableObjectShortMap<K>with(K key1, short value1, K key2, short value2, K key3, short value3) default <K> MutableObjectShortMap<K>with(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4) <K> MutableObjectShortMap<K>withAll(ObjectShortMap<? extends K> map) <K> MutableObjectShortMap<K>withInitialCapacity(int capacity) Same asempty(). but takes in an initial capacity
-
Method Details
-
empty
-
of
Same asempty(). -
with
Same asempty(). -
with
- Since:
- 11.1.
-
of
- Since:
- 11.1.
-
with
- Since:
- 11.1.
-
of
- Since:
- 11.1.
-
with
default <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2, K key3, short value3) - Since:
- 11.1.
-
of
default <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2, K key3, short value3) - Since:
- 11.1.
-
with
default <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4) - Since:
- 11.1.
-
of
default <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4) - Since:
- 11.1.
-
ofInitialCapacity
Same asempty(). but takes in an initial capacity -
withInitialCapacity
Same asempty(). but takes in an initial capacity -
ofAll
Same aswithAll(ObjectShortMap). -
withAll
-
from
<T,K> MutableObjectShortMap<K> from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ShortFunction<? super T> valueFunction) Creates anMutableObjectShortMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.- Since:
- 10.0
-