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