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 MutableMapFactoryINSTANCE -
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:
emptyin interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty().- Specified by:
ofin interfaceMutableMapFactory
-
with
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty().- Specified by:
within interfaceMutableMapFactory
-
ofInitialCapacity
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty(). but takes in an initial capacity- Specified by:
ofInitialCapacityin interfaceMutableMapFactory
-
withInitialCapacity
Description copied from interface:MutableMapFactorySame asMutableMapFactory.empty(). but takes in an initial capacity- Specified by:
withInitialCapacityin interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactory- Specified by:
ofin interfaceMutableMapFactory
-
with
- Specified by:
within interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactory- Specified by:
ofin interfaceMutableMapFactory
-
with
- Specified by:
within interfaceMutableMapFactory
-
of
Description copied from interface:MutableMapFactory- Specified by:
ofin interfaceMutableMapFactory
-
with
- 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
- Specified by:
ofMapin interfaceMutableMapFactory
-
withMap
- Specified by:
withMapin interfaceMutableMapFactory
-
ofMapIterable
- Specified by:
ofMapIterablein interfaceMutableMapFactory
-
withMapIterable
- Specified by:
withMapIterablein interfaceMutableMapFactory
-