public static class Object2ReferenceMaps.SynchronizedMap<K,V> extends Object2ReferenceFunctions.SynchronizedFunction<K,V> implements Object2ReferenceMap<K,V>, java.io.Serializable
Object2ReferenceMap.Entry<K,V>, Object2ReferenceMap.FastEntrySet<K,V>| Modifier and Type | Method and Description |
|---|---|
V |
compute(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
computeIfPresent(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
boolean |
containsValue(java.lang.Object v) |
ObjectSet<java.util.Map.Entry<K,V>> |
entrySet()
Returns a set view of the mappings contained in this map.
|
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.BiConsumer<? super K,? super V> action) |
V |
getOrDefault(java.lang.Object key,
V defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
ObjectSet<K> |
keySet()
Note that this specification strengthens the one given in
Map.keySet(). |
V |
merge(K key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction) |
ObjectSet<Object2ReferenceMap.Entry<K,V>> |
object2ReferenceEntrySet()
Returns a type-specific set view of the mappings contained in this map.
|
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) |
ReferenceCollection<V> |
values()
Note that this specification strengthens the one given in
Map.values(). |
apply, clear, containsKey, defaultReturnValue, defaultReturnValue, get, put, remove, size, toStringclear, containsKey, defaultReturnValue, defaultReturnValue, put, remove, sizegetpublic boolean containsValue(java.lang.Object v)
public ObjectSet<Object2ReferenceMap.Entry<K,V>> object2ReferenceEntrySet()
Object2ReferenceMap
This method is necessary because there is no inheritance along type
parameters: it is thus impossible to strengthen Map.entrySet() so
that it returns an ObjectSet of
type-specific entries (the latter makes it possible to access keys and values
with type-specific methods).
object2ReferenceEntrySet in interface Object2ReferenceMap<K,V>Map.entrySet()public ObjectSet<java.util.Map.Entry<K,V>> entrySet()
Note that this specification strengthens the one given in
Map.entrySet().
public ObjectSet<K> keySet()
Object2ReferenceMap
Note that this specification strengthens the one given in
Map.keySet().
public ReferenceCollection<V> values()
Object2ReferenceMap
Note that this specification strengthens the one given in
Map.values().
public int hashCode()
public boolean equals(java.lang.Object o)
public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
public boolean remove(java.lang.Object key,
java.lang.Object value)
public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)