T - the keyType of elements maintained by this CollectionV - the keyType of elements maintained by this Collectionpublic interface Object2ObjectConcurrentMap<T,V> extends java.util.concurrent.ConcurrentMap<T,V>, Object2ObjectMap<T,V>
Object2ObjectMap.BuilderCache<T,V>, Object2ObjectMap.Entry<T,V>, Object2ObjectMap.FastEntrySet<T,V>, Object2ObjectMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
default V |
compute(T key,
java.util.function.BiFunction<? super T,? super V,? extends V> mappingFunction) |
default V |
computeIfAbsent(T key,
java.util.function.Function<? super T,? extends V> mappingFunction) |
default V |
computeIfPresent(T key,
java.util.function.BiFunction<? super T,? super V,? extends V> mappingFunction) |
default void |
forEach(java.util.function.BiConsumer<? super T,? super V> action) |
V |
getOrDefault(java.lang.Object key,
V defaultValue) |
default V |
merge(T key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> mappingFunction) |
V |
putIfAbsent(T key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
V |
replace(T key,
V value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(T key,
V oldValue,
V newValue)
A Type Specific replace method to replace an existing value
|
default void |
replaceAll(java.util.function.BiFunction<? super T,? super V,? extends V> mappingFunction)
Deprecated.
|
apply, builder, compute, computeIfAbsent, computeIfPresent, copy, entrySet, forEach, getDefaultReturnValue, getObject, keySet, merge, mergeAll, object2ObjectEntrySet, put, put, putAll, putAll, putAll, putAllIfAbsent, rem, remOrDefault, remove, replaceObjects, replaceObjects, setDefaultReturnValue, supplyIfAbsent, synchronize, synchronize, unmodifiable, valuesclear, containsKey, containsValue, equals, get, hashCode, isEmpty, putAll, sizeandThen, compose, identitydefault V compute(T key, java.util.function.BiFunction<? super T,? super V,? extends V> mappingFunction)
default V computeIfAbsent(T key, java.util.function.Function<? super T,? extends V> mappingFunction)
computeIfAbsent in interface java.util.concurrent.ConcurrentMap<T,V>computeIfAbsent in interface java.util.Map<T,V>computeIfAbsent in interface Object2ObjectMap<T,V>default V computeIfPresent(T key, java.util.function.BiFunction<? super T,? super V,? extends V> mappingFunction)
computeIfPresent in interface java.util.concurrent.ConcurrentMap<T,V>computeIfPresent in interface java.util.Map<T,V>computeIfPresent in interface Object2ObjectMap<T,V>default V merge(T key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> mappingFunction)
V putIfAbsent(T key, V value)
Object2ObjectMapputIfAbsent in interface java.util.concurrent.ConcurrentMap<T,V>putIfAbsent in interface java.util.Map<T,V>putIfAbsent in interface Object2ObjectMap<T,V>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)boolean remove(java.lang.Object key,
java.lang.Object value)
boolean replace(T key, V oldValue, V newValue)
Object2ObjectMapreplace in interface java.util.concurrent.ConcurrentMap<T,V>replace in interface java.util.Map<T,V>replace in interface Object2ObjectMap<T,V>key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.V replace(T key, V value)
Object2ObjectMapreplace in interface java.util.concurrent.ConcurrentMap<T,V>replace in interface java.util.Map<T,V>replace in interface Object2ObjectMap<T,V>key - the element that should be searched forvalue - the value to replace with.@Deprecated default void replaceAll(java.util.function.BiFunction<? super T,? super V,? extends V> mappingFunction)
replaceAll in interface java.util.concurrent.ConcurrentMap<T,V>replaceAll in interface java.util.Map<T,V>replaceAll in interface Object2ObjectMap<T,V>