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 ImmutableMapFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description ImmutableMapFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <K,V>
ImmutableMap<K,V>empty()
<K,V>
ImmutableMap<K,V>of()
<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)
<K,V>
ImmutableMap<K,V>ofMap(Map<K,V> map)
Deprecated.useofAll(Map)
instead (inlineable)<K,V>
ImmutableMap<K,V>with()
<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 Detail
-
INSTANCE
public static final ImmutableMapFactory INSTANCE
-
-
Method Detail
-
empty
public <K,V> ImmutableMap<K,V> empty()
- Specified by:
empty
in interfaceImmutableMapFactory
-
of
public <K,V> ImmutableMap<K,V> of()
- Specified by:
of
in interfaceImmutableMapFactory
-
with
public <K,V> ImmutableMap<K,V> with()
- Specified by:
with
in interfaceImmutableMapFactory
-
of
public <K,V> ImmutableMap<K,V> of(K key, V value)
- Specified by:
of
in interfaceImmutableMapFactory
-
with
public <K,V> ImmutableMap<K,V> with(K key, V value)
- Specified by:
with
in interfaceImmutableMapFactory
-
of
public <K,V> ImmutableMap<K,V> of(K key1, V value1, K key2, V value2)
- Specified by:
of
in interfaceImmutableMapFactory
-
with
public <K,V> ImmutableMap<K,V> with(K key1, V value1, K key2, V value2)
- Specified by:
with
in interfaceImmutableMapFactory
-
of
public <K,V> ImmutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3)
- Specified by:
of
in interfaceImmutableMapFactory
-
with
public <K,V> ImmutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3)
- Specified by:
with
in 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)
- Specified by:
of
in 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:
with
in interfaceImmutableMapFactory
-
ofMap
@Deprecated public <K,V> ImmutableMap<K,V> ofMap(Map<K,V> map)
Deprecated.useofAll(Map)
instead (inlineable)- Specified by:
ofMap
in interfaceImmutableMapFactory
-
ofAll
public <K,V> ImmutableMap<K,V> ofAll(Map<K,V> map)
- Specified by:
ofAll
in interfaceImmutableMapFactory
-
withAll
public <K,V> ImmutableMap<K,V> withAll(Map<K,V> map)
- Specified by:
withAll
in interfaceImmutableMapFactory
-
-