T - the keyType of elements maintained by this Collectionpublic interface Object2LongConcurrentMap<T> extends java.util.concurrent.ConcurrentMap<T,java.lang.Long>, Object2LongMap<T>
Object2LongMap.BuilderCache<T>, Object2LongMap.Entry<T>, Object2LongMap.FastEntrySet<T>, Object2LongMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
default java.lang.Long |
compute(T key,
java.util.function.BiFunction<? super T,? super java.lang.Long,? extends java.lang.Long> mappingFunction) |
default java.lang.Long |
computeIfAbsent(T key,
java.util.function.Function<? super T,? extends java.lang.Long> mappingFunction) |
default java.lang.Long |
computeIfPresent(T key,
java.util.function.BiFunction<? super T,? super java.lang.Long,? extends java.lang.Long> mappingFunction) |
default void |
forEach(java.util.function.BiConsumer<? super T,? super java.lang.Long> action) |
default java.lang.Long |
getOrDefault(java.lang.Object key,
java.lang.Long defaultValue) |
default java.lang.Long |
merge(T key,
java.lang.Long value,
java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Long,? extends java.lang.Long> mappingFunction) |
default java.lang.Long |
putIfAbsent(T key,
java.lang.Long value) |
default boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
default java.lang.Long |
replace(T key,
java.lang.Long value)
Deprecated.
|
default boolean |
replace(T key,
java.lang.Long oldValue,
java.lang.Long newValue)
Deprecated.
|
default void |
replaceAll(java.util.function.BiFunction<? super T,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
Deprecated.
|
addTo, addToAll, applyAsLong, builder, computeLong, computeLongIfAbsent, computeLongIfPresent, containsValue, containsValue, copy, entrySet, forEach, get, getDefaultReturnValue, getLong, getOrDefault, keySet, mergeAllLong, mergeLong, object2LongEntrySet, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, replace, replace, replaceLongs, replaceLongs, setDefaultReturnValue, subFrom, supplyLongIfAbsent, synchronize, synchronize, unmodifiable, valuesdefault java.lang.Long compute(T key, java.util.function.BiFunction<? super T,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
compute in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>compute in interface java.util.Map<T,java.lang.Long>compute in interface Object2LongMap<T>default java.lang.Long computeIfAbsent(T key, java.util.function.Function<? super T,? extends java.lang.Long> mappingFunction)
computeIfAbsent in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>computeIfAbsent in interface java.util.Map<T,java.lang.Long>computeIfAbsent in interface Object2LongMap<T>default java.lang.Long computeIfPresent(T key, java.util.function.BiFunction<? super T,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
computeIfPresent in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>computeIfPresent in interface java.util.Map<T,java.lang.Long>computeIfPresent in interface Object2LongMap<T>default void forEach(java.util.function.BiConsumer<? super T,? super java.lang.Long> action)
forEach in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>forEach in interface java.util.Map<T,java.lang.Long>forEach in interface Object2LongMap<T>default java.lang.Long merge(T key, java.lang.Long value, java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
merge in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>merge in interface java.util.Map<T,java.lang.Long>merge in interface Object2LongMap<T>default java.lang.Long getOrDefault(java.lang.Object key,
java.lang.Long defaultValue)
getOrDefault in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>getOrDefault in interface java.util.Map<T,java.lang.Long>getOrDefault in interface Object2LongMap<T>default java.lang.Long putIfAbsent(T key, java.lang.Long value)
putIfAbsent in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>putIfAbsent in interface java.util.Map<T,java.lang.Long>putIfAbsent in interface Object2LongMap<T>@Deprecated
default boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>remove in interface java.util.Map<T,java.lang.Long>remove in interface Object2LongMap<T>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated default boolean replace(T key, java.lang.Long oldValue, java.lang.Long newValue)
replace in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>replace in interface java.util.Map<T,java.lang.Long>replace in interface Object2LongMap<T>@Deprecated default java.lang.Long replace(T key, java.lang.Long value)
replace in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>replace in interface java.util.Map<T,java.lang.Long>replace in interface Object2LongMap<T>@Deprecated default void replaceAll(java.util.function.BiFunction<? super T,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
replaceAll in interface java.util.concurrent.ConcurrentMap<T,java.lang.Long>replaceAll in interface java.util.Map<T,java.lang.Long>replaceAll in interface Object2LongMap<T>