MutableMapFactory
public class MutableMapFactoryImpl extends java.lang.Object implements MutableMapFactory
Modifier and Type | Field | Description |
---|---|---|
static MutableMapFactory |
INSTANCE |
Constructor | Description |
---|---|
MutableMapFactoryImpl() |
Modifier and Type | Method | 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> |
ofMap(java.util.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 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() . |
<K,V> MutableMap<K,V> |
withMap(java.util.Map<? extends K,? extends V> map) |
|
<K,V> MutableMap<K,V> |
withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
public static final MutableMapFactory INSTANCE
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
public <K,V> MutableMap<K,V> ofMap(java.util.Map<? extends K,? extends V> map)
ofMap
in interface MutableMapFactory
public <K,V> MutableMap<K,V> withMap(java.util.Map<? extends K,? extends V> map)
withMap
in interface MutableMapFactory
public <K,V> MutableMap<K,V> ofMapIterable(MapIterable<? extends K,? extends V> mapIterable)
ofMapIterable
in interface MutableMapFactory
public <K,V> MutableMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
withMapIterable
in interface MutableMapFactory
Copyright © 2004–2020. All rights reserved.