Interface MutableMapFactory
- All Known Implementing Classes:
MutableMapFactoryImpl
public interface MutableMapFactory
-
Method Summary
Modifier and Type Method Description <K, V> MutableMap<K,V>
empty()
<K, V> MutableMap<K,V>
of()
Same asempty()
.<K, V> MutableMap<K,V>
of(K key, V value)
Same aswith(Object, Object)
.<K, V> MutableMap<K,V>
of(K key1, V value1, K key2, V value2)
Same aswith(Object, Object, Object, Object)
.<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 asempty()
.<K, V> MutableMap<K,V>
ofMap(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 asempty()
.<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 asempty()
.<K, V> MutableMap<K,V>
withMap(Map<? extends K,? extends V> map)
<K, V> MutableMap<K,V>
withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
-
Method Details
-
empty
- Since:
- 6.0
-
of
Same asempty()
. -
with
Same asempty()
. -
ofInitialCapacity
Same asempty()
. but takes in an initial capacity -
withInitialCapacity
Same asempty()
. but takes in an initial capacity -
of
Same aswith(Object, Object)
. -
with
-
of
Same aswith(Object, Object, Object, Object)
. -
with
-
of
-
with
-
of
<K, V> MutableMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4) -
with
<K, V> MutableMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4) -
ofMap
-
withMap
-
ofMapIterable
-
withMapIterable
-