Class ImmutableMapFactoryImpl
java.lang.Object
org.eclipse.collections.impl.map.immutable.ImmutableMapFactoryImpl
- All Implemented Interfaces:
ImmutableMapFactory
public class ImmutableMapFactoryImpl extends Object implements ImmutableMapFactory
-
Field Summary
Fields Modifier and Type Field Description static ImmutableMapFactoryINSTANCE -
Constructor Summary
Constructors Constructor Description ImmutableMapFactoryImpl() -
Method Summary
Modifier and Type Method Description <K, V> ImmutableMap<K,V>empty()<K, V> ImmutableMap<K,V>of()Same asImmutableMapFactory.empty().<K, V> ImmutableMap<K,V>of(K key, V value)<K, V> ImmutableMap<K,V>of(K key1, V value1, K key2, V value2)<K, V> ImmutableMap<K,V>of(K key1, V value1, K key2, V value2, K key3, V value3)<K, V> ImmutableMap<K,V>of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)<K, V> ImmutableMap<K,V>ofAll(Map<K,V> map)Same asImmutableMapFactory.withAll(Map).<K, V> ImmutableMap<K,V>ofMap(Map<K,V> map)Deprecated.useofAll(Map)instead (inlineable)<K, V> ImmutableMap<K,V>with()Same asImmutableMapFactory.empty().<K, V> ImmutableMap<K,V>with(K key, V value)<K, V> ImmutableMap<K,V>with(K key1, V value1, K key2, V value2)<K, V> ImmutableMap<K,V>with(K key1, V value1, K key2, V value2, K key3, V value3)<K, V> ImmutableMap<K,V>with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)<K, V> ImmutableMap<K,V>withAll(Map<K,V> map)
-
Field Details
-
Constructor Details
-
ImmutableMapFactoryImpl
public ImmutableMapFactoryImpl()
-
-
Method Details
-
empty
- Specified by:
emptyin interfaceImmutableMapFactory
-
of
Description copied from interface:ImmutableMapFactorySame asImmutableMapFactory.empty().- Specified by:
ofin interfaceImmutableMapFactory
-
with
Description copied from interface:ImmutableMapFactorySame asImmutableMapFactory.empty().- Specified by:
within interfaceImmutableMapFactory
-
of
Description copied from interface:ImmutableMapFactory- Specified by:
ofin interfaceImmutableMapFactory
-
with
- Specified by:
within interfaceImmutableMapFactory
-
of
Description copied from interface:ImmutableMapFactory- Specified by:
ofin interfaceImmutableMapFactory
-
with
- Specified by:
within interfaceImmutableMapFactory
-
of
Description copied from interface:ImmutableMapFactory- Specified by:
ofin interfaceImmutableMapFactory
-
with
- Specified by:
within interfaceImmutableMapFactory
-
of
public <K, V> ImmutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)Description copied from interface:ImmutableMapFactory- Specified by:
ofin interfaceImmutableMapFactory
-
with
public <K, V> ImmutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)- Specified by:
within interfaceImmutableMapFactory
-
ofMap
Deprecated.useofAll(Map)instead (inlineable)- Specified by:
ofMapin interfaceImmutableMapFactory
-
ofAll
Description copied from interface:ImmutableMapFactorySame asImmutableMapFactory.withAll(Map).- Specified by:
ofAllin interfaceImmutableMapFactory
-
withAll
- Specified by:
withAllin interfaceImmutableMapFactory
-