public static class MutableMap.Builder<K,V>
extends java.lang.Object
ImmutableMap.Builder
Constructor and Description |
---|
MutableMap.Builder() |
Modifier and Type | Method and Description |
---|---|
MutableMap<K,V> |
build() |
MutableMap.Builder<K,V> |
filterKeys(com.google.common.base.Predicate<? super K> filter) |
MutableMap.Builder<K,V> |
filterValues(com.google.common.base.Predicate<? super V> filter) |
MutableMap.Builder<K,V> |
put(K key,
V value) |
MutableMap.Builder<K,V> |
put(java.util.Map.Entry<? extends K,? extends V> entry) |
MutableMap.Builder<K,V> |
putAll(java.util.Map<? extends K,? extends V> map) |
MutableMap.Builder<K,V> |
putIfAbsent(K key,
V value) |
MutableMap.Builder<K,V> |
putIfNotNull(K key,
V value) |
MutableMap.Builder<K,V> |
remove(K key) |
MutableMap.Builder<K,V> |
removeAll(java.lang.Iterable<? extends K> keys) |
MutableMap.Builder<K,V> |
removeAll(K... keys) |
MutableMap.Builder<K,V> |
renameKey(K oldKey,
K newKey)
moves the value stored under oldKey to newKey, if there was such a value
|
public MutableMap.Builder<K,V> put(K key, V value)
public MutableMap.Builder<K,V> putIfNotNull(K key, V value)
public MutableMap.Builder<K,V> putIfAbsent(K key, V value)
public MutableMap.Builder<K,V> put(java.util.Map.Entry<? extends K,? extends V> entry)
public MutableMap.Builder<K,V> putAll(java.util.Map<? extends K,? extends V> map)
public MutableMap.Builder<K,V> remove(K key)
public MutableMap.Builder<K,V> removeAll(K... keys)
public MutableMap.Builder<K,V> removeAll(java.lang.Iterable<? extends K> keys)
public MutableMap.Builder<K,V> renameKey(K oldKey, K newKey)
public MutableMap<K,V> build()
public MutableMap.Builder<K,V> filterValues(com.google.common.base.Predicate<? super V> filter)
public MutableMap.Builder<K,V> filterKeys(com.google.common.base.Predicate<? super K> filter)