Class MutableMapFactoryImpl
java.lang.Object
org.eclipse.collections.impl.map.mutable.MutableMapFactoryImpl
- All Implemented Interfaces:
MutableMapFactory
public class MutableMapFactoryImpl extends Object implements MutableMapFactory
-
Field Summary
Fields Modifier and Type Field Description static MutableMapFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MutableMapFactoryImpl()
-
Method Summary
Modifier and Type Method Description <K, V> MutableMap<K,V>
empty()
<K, V> MutableMap<K,V>
of()
Same asMutableMapFactory.empty()
.<K, V> MutableMap<K,V>
of(K key, V value)
<K, V> MutableMap<K,V>
of(K key1, V value1, K key2, V value2)
<K, V> MutableMap<K,V>
of(K key1, V value1, K key2, V value2, K key3, V value3)
<K, V> MutableMap<K,V>
of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
<K, V> MutableMap<K,V>
ofInitialCapacity(int capacity)
Same asMutableMapFactory.empty()
.<K, V> MutableMap<K,V>
ofMap(Map<? extends K,? extends V> map)
<K, V> MutableMap<K,V>
ofMapIterable(MapIterable<? extends K,? extends V> mapIterable)
<K, V> MutableMap<K,V>
with()
Same asMutableMapFactory.empty()
.<K, V> MutableMap<K,V>
with(K key, V value)
<K, V> MutableMap<K,V>
with(K key1, V value1, K key2, V value2)
<K, V> MutableMap<K,V>
with(K key1, V value1, K key2, V value2, K key3, V value3)
<K, V> MutableMap<K,V>
with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
<K, V> MutableMap<K,V>
withInitialCapacity(int capacity)
Same asMutableMapFactory.empty()
.<K, V> MutableMap<K,V>
withMap(Map<? extends K,? extends V> map)
<K, V> MutableMap<K,V>
withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
-
Field Details
-
Constructor Details
-
MutableMapFactoryImpl
public MutableMapFactoryImpl()
-
-
Method Details
-
empty
- Specified by:
empty
in interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactory
Same asMutableMapFactory.empty()
.- Specified by:
of
in interfaceMutableMapFactory
-
with
Description copied from interface:MutableMapFactory
Same asMutableMapFactory.empty()
.- Specified by:
with
in interfaceMutableMapFactory
-
ofInitialCapacity
Description copied from interface:MutableMapFactory
Same asMutableMapFactory.empty()
. but takes in an initial capacity- Specified by:
ofInitialCapacity
in interfaceMutableMapFactory
-
withInitialCapacity
Description copied from interface:MutableMapFactory
Same asMutableMapFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactory
- Specified by:
of
in interfaceMutableMapFactory
-
with
- Specified by:
with
in interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactory
- Specified by:
of
in interfaceMutableMapFactory
-
with
- Specified by:
with
in interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactory
- Specified by:
of
in interfaceMutableMapFactory
-
with
- Specified by:
with
in interfaceMutableMapFactory
-
of
public <K, V> MutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)Description copied from interface:MutableMapFactory
- Specified by:
of
in interfaceMutableMapFactory
-
with
public <K, V> MutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)- Specified by:
with
in interfaceMutableMapFactory
-
ofMap
- Specified by:
ofMap
in interfaceMutableMapFactory
-
withMap
- Specified by:
withMap
in interfaceMutableMapFactory
-
ofMapIterable
- Specified by:
ofMapIterable
in interfaceMutableMapFactory
-
withMapIterable
- Specified by:
withMapIterable
in interfaceMutableMapFactory
-