Class MutableMapFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.MutableMapFactoryImpl
-
- All Implemented Interfaces:
MutableMapFactory
public class MutableMapFactoryImpl extends java.lang.Object implements MutableMapFactory
-
-
Field Summary
Fields Modifier and Type Field Description static MutableMapFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description MutableMapFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods 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(java.util.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(java.util.Map<? extends K,? extends V> map)<K,V>
MutableMap<K,V>withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
-
-
-
Field Detail
-
INSTANCE
public static final MutableMapFactory INSTANCE
-
-
Method Detail
-
empty
public <K,V> MutableMap<K,V> empty()
- Specified by:
emptyin interfaceMutableMapFactory
-
of
public <K,V> MutableMap<K,V> of()
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty().- Specified by:
ofin interfaceMutableMapFactory
-
with
public <K,V> MutableMap<K,V> with()
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty().- Specified by:
within interfaceMutableMapFactory
-
ofInitialCapacity
public <K,V> MutableMap<K,V> ofInitialCapacity(int capacity)
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty(). but takes in an initial capacity- Specified by:
ofInitialCapacityin interfaceMutableMapFactory
-
withInitialCapacity
public <K,V> MutableMap<K,V> withInitialCapacity(int capacity)
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty(). but takes in an initial capacity- Specified by:
withInitialCapacityin interfaceMutableMapFactory
-
of
public <K,V> MutableMap<K,V> of(K key, V value)
Description copied from interface:MutableMapFactory- Specified by:
ofin interfaceMutableMapFactory
-
with
public <K,V> MutableMap<K,V> with(K key, V value)
- Specified by:
within interfaceMutableMapFactory
-
of
public <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2)
Description copied from interface:MutableMapFactory- Specified by:
ofin interfaceMutableMapFactory
-
with
public <K,V> MutableMap<K,V> with(K key1, V value1, K key2, V value2)
- Specified by:
within interfaceMutableMapFactory
-
of
public <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3)
Description copied from interface:MutableMapFactory- Specified by:
ofin interfaceMutableMapFactory
-
with
public <K,V> MutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3)
- Specified by:
within 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:
ofin 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:
within interfaceMutableMapFactory
-
ofMap
public <K,V> MutableMap<K,V> ofMap(java.util.Map<? extends K,? extends V> map)
- Specified by:
ofMapin interfaceMutableMapFactory
-
withMap
public <K,V> MutableMap<K,V> withMap(java.util.Map<? extends K,? extends V> map)
- Specified by:
withMapin interfaceMutableMapFactory
-
ofMapIterable
public <K,V> MutableMap<K,V> ofMapIterable(MapIterable<? extends K,? extends V> mapIterable)
- Specified by:
ofMapIterablein interfaceMutableMapFactory
-
withMapIterable
public <K,V> MutableMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
- Specified by:
withMapIterablein interfaceMutableMapFactory
-
-