@Immutable public final class MutableMapFactoryImpl extends Object implements MutableMapFactory
Constructor and Description |
---|
MutableMapFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<K,V> MutableMap<K,V> |
empty() |
<K,V> MutableMap<K,V> |
of()
Same as
MutableMapFactory.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 as
MutableMapFactory.empty() . |
<K,V> MutableMap<K,V> |
with()
Same as
MutableMapFactory.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 as
MutableMapFactory.empty() . |
public <K,V> MutableMap<K,V> empty()
empty
in interface MutableMapFactory
public <K,V> MutableMap<K,V> of()
MutableMapFactory
MutableMapFactory.empty()
.of
in interface MutableMapFactory
public <K,V> MutableMap<K,V> with()
MutableMapFactory
MutableMapFactory.empty()
.with
in interface MutableMapFactory
public <K,V> MutableMap<K,V> ofInitialCapacity(int capacity)
MutableMapFactory
MutableMapFactory.empty()
. but takes in an initial capacityofInitialCapacity
in interface MutableMapFactory
public <K,V> MutableMap<K,V> withInitialCapacity(int capacity)
MutableMapFactory
MutableMapFactory.empty()
. but takes in an initial capacitywithInitialCapacity
in interface MutableMapFactory
public <K,V> MutableMap<K,V> of(K key, V value)
MutableMapFactory
of
in interface MutableMapFactory
public <K,V> MutableMap<K,V> with(K key, V value)
with
in interface MutableMapFactory
public <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2)
MutableMapFactory
of
in interface MutableMapFactory
public <K,V> MutableMap<K,V> with(K key1, V value1, K key2, V value2)
with
in interface MutableMapFactory
public <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3)
MutableMapFactory
of
in interface MutableMapFactory
public <K,V> MutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3)
with
in interface MutableMapFactory
public <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
MutableMapFactory
of
in interface MutableMapFactory
public <K,V> MutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
with
in interface MutableMapFactory
Copyright © 2004–2016. All rights reserved.