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