MutableMapFactorypublic enum MutableMapFactoryImpl extends java.lang.Enum<MutableMapFactoryImpl> implements MutableMapFactory
| Enum Constant | Description |
|---|---|
INSTANCE |
| 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(). |
static MutableMapFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MutableMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<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 static final MutableMapFactoryImpl INSTANCE
public static MutableMapFactoryImpl[] values()
for (MutableMapFactoryImpl c : MutableMapFactoryImpl.values()) System.out.println(c);
public static MutableMapFactoryImpl valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <K,V> MutableMap<K,V> empty()
empty in interface MutableMapFactorypublic <K,V> MutableMap<K,V> of()
MutableMapFactoryMutableMapFactory.empty().of in interface MutableMapFactorypublic <K,V> MutableMap<K,V> with()
MutableMapFactoryMutableMapFactory.empty().with in interface MutableMapFactorypublic <K,V> MutableMap<K,V> ofInitialCapacity(int capacity)
MutableMapFactoryMutableMapFactory.empty(). but takes in an initial capacityofInitialCapacity in interface MutableMapFactorypublic <K,V> MutableMap<K,V> withInitialCapacity(int capacity)
MutableMapFactoryMutableMapFactory.empty(). but takes in an initial capacitywithInitialCapacity in interface MutableMapFactorypublic <K,V> MutableMap<K,V> of(K key, V value)
MutableMapFactoryof in interface MutableMapFactorypublic <K,V> MutableMap<K,V> with(K key, V value)
with in interface MutableMapFactorypublic <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2)
MutableMapFactoryof in interface MutableMapFactorypublic <K,V> MutableMap<K,V> with(K key1, V value1, K key2, V value2)
with in interface MutableMapFactorypublic <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3)
MutableMapFactoryof in interface MutableMapFactorypublic <K,V> MutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3)
with in interface MutableMapFactorypublic <K,V> MutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
MutableMapFactoryof in interface MutableMapFactorypublic <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 MutableMapFactoryCopyright © 2004–2017. All rights reserved.