public class ImmutableMapFactoryImpl extends Object implements ImmutableMapFactory
| Modifier and Type | Field and Description |
|---|---|
static ImmutableMapFactory |
INSTANCE |
| Constructor and Description |
|---|
ImmutableMapFactoryImpl() |
| Modifier and Type | Method and 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.
use
ofAll(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) |
public static final ImmutableMapFactory INSTANCE
public <K,V> ImmutableMap<K,V> empty()
empty in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> of()
of in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> with()
with in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> of(K key, V value)
of in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> with(K key, V value)
with in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> of(K key1, V value1, K key2, V value2)
of in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> with(K key1, V value1, K key2, V value2)
with in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3)
of in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3)
with in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
of in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
with in interface ImmutableMapFactory@Deprecated public <K,V> ImmutableMap<K,V> ofMap(Map<K,V> map)
ofAll(Map) instead (inlineable)ofMap in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> ofAll(Map<K,V> map)
ofAll in interface ImmutableMapFactorypublic <K,V> ImmutableMap<K,V> withAll(Map<K,V> map)
withAll in interface ImmutableMapFactoryCopyright © 2004–2022. All rights reserved.