Class MutableObjectShortMapFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.MutableObjectShortMapFactoryImpl
-
- All Implemented Interfaces:
MutableObjectShortMapFactory
public class MutableObjectShortMapFactoryImpl extends java.lang.Object implements MutableObjectShortMapFactory
MutableObjectShortMapFactoryImpl is a factory implementation which creates instances of typeMutableObjectShortMap
. This file was automatically generated from template file mutableObjectPrimitiveMapFactoryImpl.stg.- Since:
- 6.0.
-
-
Field Summary
Fields Modifier and Type Field Description static MutableObjectShortMapFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MutableObjectShortMapFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K> MutableObjectShortMap<K>
empty()
<T,K>
MutableObjectShortMap<K>from(java.lang.Iterable<T> iterable, Function<? super T,? extends K> keyFunction, ShortFunction<? super T> valueFunction)
Creates anMutableObjectShortMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.<K> MutableObjectShortMap<K>
of()
Same asMutableObjectShortMapFactory.empty()
.<K> MutableObjectShortMap<K>
of(K key, short value)
<K> MutableObjectShortMap<K>
of(K key1, short value1, K key2, short value2)
<K> MutableObjectShortMap<K>
of(K key1, short value1, K key2, short value2, K key3, short value3)
<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)
<K> MutableObjectShortMap<K>
ofInitialCapacity(int capacity)
Same asMutableObjectShortMapFactory.empty()
.<K> MutableObjectShortMap<K>
with()
Same asMutableObjectShortMapFactory.empty()
.<K> MutableObjectShortMap<K>
with(K key, short value)
<K> MutableObjectShortMap<K>
with(K key1, short value1, K key2, short value2)
<K> MutableObjectShortMap<K>
with(K key1, short value1, K key2, short value2, K key3, short value3)
<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 asMutableObjectShortMapFactory.empty()
.
-
-
-
Field Detail
-
INSTANCE
public static final MutableObjectShortMapFactory INSTANCE
-
-
Method Detail
-
empty
public <K> MutableObjectShortMap<K> empty()
- Specified by:
empty
in interfaceMutableObjectShortMapFactory
-
of
public <K> MutableObjectShortMap<K> of()
Description copied from interface:MutableObjectShortMapFactory
Same asMutableObjectShortMapFactory.empty()
.- Specified by:
of
in interfaceMutableObjectShortMapFactory
-
with
public <K> MutableObjectShortMap<K> with()
Description copied from interface:MutableObjectShortMapFactory
Same asMutableObjectShortMapFactory.empty()
.- Specified by:
with
in interfaceMutableObjectShortMapFactory
-
of
public <K> MutableObjectShortMap<K> of(K key, short value)
- Specified by:
of
in interfaceMutableObjectShortMapFactory
-
with
public <K> MutableObjectShortMap<K> with(K key, short value)
- Specified by:
with
in interfaceMutableObjectShortMapFactory
-
of
public <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2)
- Specified by:
of
in interfaceMutableObjectShortMapFactory
-
with
public <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2)
- Specified by:
with
in interfaceMutableObjectShortMapFactory
-
of
public <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2, K key3, short value3)
- Specified by:
of
in interfaceMutableObjectShortMapFactory
-
with
public <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2, K key3, short value3)
- Specified by:
with
in interfaceMutableObjectShortMapFactory
-
of
public <K> MutableObjectShortMap<K> of(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)
- Specified by:
of
in interfaceMutableObjectShortMapFactory
-
with
public <K> MutableObjectShortMap<K> with(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)
- Specified by:
with
in interfaceMutableObjectShortMapFactory
-
ofInitialCapacity
public <K> MutableObjectShortMap<K> ofInitialCapacity(int capacity)
Description copied from interface:MutableObjectShortMapFactory
Same asMutableObjectShortMapFactory.empty()
. but takes in an initial capacity- Specified by:
ofInitialCapacity
in interfaceMutableObjectShortMapFactory
-
withInitialCapacity
public <K> MutableObjectShortMap<K> withInitialCapacity(int capacity)
Description copied from interface:MutableObjectShortMapFactory
Same asMutableObjectShortMapFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableObjectShortMapFactory
-
ofAll
public <K> MutableObjectShortMap<K> ofAll(ObjectShortMap<? extends K> map)
Description copied from interface:MutableObjectShortMapFactory
- Specified by:
ofAll
in interfaceMutableObjectShortMapFactory
-
withAll
public <K> MutableObjectShortMap<K> withAll(ObjectShortMap<? extends K> map)
- Specified by:
withAll
in interfaceMutableObjectShortMapFactory
-
from
public <T,K> MutableObjectShortMap<K> from(java.lang.Iterable<T> iterable, Function<? super T,? extends K> keyFunction, ShortFunction<? super T> valueFunction)
Description copied from interface:MutableObjectShortMapFactory
Creates anMutableObjectShortMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceMutableObjectShortMapFactory
-
-