K
- for keyV
- for victorypublic final class ImmutableMapWithNullValues<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
|
V |
compute(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
Deprecated.
|
V |
computeIfAbsent(K key,
java.util.function.Function<? super K,? extends V> mappingFunction)
Deprecated.
|
V |
computeIfPresent(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
Deprecated.
|
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
static <K,V> ImmutableMapWithNullValues<K,V> |
copyOf(java.util.Map<K,V> map) |
static <K,V> ImmutableMapWithNullValues<K,V> |
emptyMap() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.BiConsumer<? super K,? super V> action) |
V |
get(java.lang.Object key) |
V |
getOrDefault(java.lang.Object key,
V defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
merge(K key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction)
Deprecated.
|
V |
put(K key,
V value)
Deprecated.
|
void |
putAll(java.util.Map<? extends K,? extends V> m)
Deprecated.
|
V |
putIfAbsent(K key,
V value)
Deprecated.
|
V |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
V |
replace(K key,
V value)
Deprecated.
|
boolean |
replace(K key,
V oldValue,
V newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
Deprecated.
|
int |
size() |
java.lang.String |
toString() |
java.util.Collection<V> |
values() |
public static <K,V> ImmutableMapWithNullValues<K,V> emptyMap()
public static <K,V> ImmutableMapWithNullValues<K,V> copyOf(java.util.Map<K,V> map)
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
@Deprecated public V remove(java.lang.Object key)
@Deprecated public void clear()
public boolean equals(java.lang.Object o)
public int hashCode()
@Deprecated public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
@Deprecated public boolean remove(java.lang.Object key, java.lang.Object value)
@Deprecated public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
@Deprecated public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
@Deprecated public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
@Deprecated public V merge(K key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction)
public java.lang.String toString()
toString
in class java.lang.Object