public enum MutableMapFactoryImpl extends Enum<MutableMapFactoryImpl> implements MutableMapFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableMap<K,V> |
empty() |
<K,V> MutableMap<K,V> |
of() |
<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) |
static MutableMapFactoryImpl |
valueOf(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() |
<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) |
public static final MutableMapFactoryImpl INSTANCE
public static MutableMapFactoryImpl[] values()
for (MutableMapFactoryImpl c : MutableMapFactoryImpl.values()) System.out.println(c);
public static MutableMapFactoryImpl valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <K,V> MutableMap<K,V> empty()
empty in interface MutableMapFactorypublic <K,V> MutableMap<K,V> of()
of in interface MutableMapFactorypublic <K,V> MutableMap<K,V> with()
with in interface MutableMapFactorypublic <K,V> MutableMap<K,V> ofInitialCapacity(int capacity)
ofInitialCapacity in interface MutableMapFactorypublic <K,V> MutableMap<K,V> withInitialCapacity(int capacity)
withInitialCapacity in interface MutableMapFactorypublic <K,V> MutableMap<K,V> of(K key, V value)
of 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)
of 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)
of 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)
of 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.