clear() |
Removes all of the mappings from this map. |
compute​(K key, BiFunction<? super K,​? super V,​? extends V> remappingFunction) |
Attempts to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping). |
computeIfAbsent​(K key, Function<? super K,​? extends V> mappingFunction) |
If the specified key is not already associated with a value, attempts to compute its value using the given mapping function and enters it into this map unless null. |
computeIfPresent​(K key, BiFunction<? super K,​? super V,​? extends V> remappingFunction) |
If the value for the specified key is present, attempts to compute a new mapping given the key and its current mapped value. |
contains​(Object value) |
Tests if some keymaps into the specified value in this table. |
containsKey​(Object key) |
Tests if the specified object is a key in this table. |
containsValue​(Object value) |
Returns true if this map maps one or more keys to the specified value. |
elements() |
Returns an enumeration of the values in this table. |
entrySet() |
Returns a Set view of the mappings contained in this map. |
equals​(Object o) |
Compares the specified object with this map for equality. |
forEach​(long parallelismThreshold, BiConsumer<? super K,​? super V> action) |
Performs the given action for each (key, value). |
forEach​(long parallelismThreshold, BiFunction<? super K,​? super V,​? extends U> transformer, Consumer<? super U> action) |
Performs the given action for each non-null transformation of each (key, value). |
forEachEntry​(long parallelismThreshold, Consumer<? super Map.Entry<K,​V>> action) |
Performs the given action for each entry. |
forEachEntry​(long parallelismThreshold, Function<Map.Entry<K,​V>,​? extends U> transformer, Consumer<? super U> action) |
Performs the given action for each non-null transformation of each entry. |
forEachKey​(long parallelismThreshold, Consumer<? super K> action) |
Performs the given action for each key. |
forEachKey​(long parallelismThreshold, Function<? super K,​? extends U> transformer, Consumer<? super U> action) |
Performs the given action for each non-null transformation of each key. |
forEachValue​(long parallelismThreshold, Consumer<? super V> action) |
Performs the given action for each value. |
forEachValue​(long parallelismThreshold, Function<? super V,​? extends U> transformer, Consumer<? super U> action) |
Performs the given action for each non-null transformation of each value. |
get​(Object key) |
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
getOrDefault​(Object key, V defaultValue) |
Returns the value to which the specified key is mapped, or the given default value if this map contains no mapping for the key. |
hashCode() |
Returns the hash code value for this Map, i.e., the sum of, for each key-value pair in the map, key.hashCode() ^ value.hashCode(). |
keys() |
Returns an enumeration of the keys in this table. |
keySet() |
Returns a Set view of the keys contained in this map. |
keySet​(V mappedValue) |
Returns a Set view of the keys in this map, using the given common mapped value for any additions (i.e., Collection.add(E) and Collection.addAll(Collection)). |
mappingCount() |
Returns the number of mappings. |
merge​(K key, V value, BiFunction<? super V,​? super V,​? extends V> remappingFunction) |
If the specified key is not already associated with a (non-null) value, associates it with the given value. |
newKeySet() |
Creates a new Set backed by a ConcurrentHashMap from the given type to Boolean.TRUE. |
newKeySet​(int initialCapacity) |
Creates a new Set backed by a ConcurrentHashMap from the given type to Boolean.TRUE. |
put​(K key, V value) |
Maps the specified key to the specified value in this table. |
putAll​(Map<? extends K,​? extends V> m) |
Copies all of the mappings from the specified map to this one. |
putIfAbsent​(K key, V value) |
If the specified key is not already associated with a value, associates it with the given value. |
reduce​(long parallelismThreshold, BiFunction<? super K,​? super V,​? extends U> transformer, BiFunction<? super U,​? super U,​? extends U> reducer) |
Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, or null if none. |
reduceEntries​(long parallelismThreshold, BiFunction<Map.Entry<K,​V>,​Map.Entry<K,​V>,​? extends Map.Entry<K,​V>> reducer) |
Returns the result of accumulating all entries using the given reducer to combine values, or null if none. |
reduceEntries​(long parallelismThreshold, Function<Map.Entry<K,​V>,​? extends U> transformer, BiFunction<? super U,​? super U,​? extends U> reducer) |
Returns the result of accumulating the given transformation of all entries using the given reducer to combine values, or null if none. |
reduceEntriesToDouble​(long parallelismThreshold, ToDoubleFunction<Map.Entry<K,​V>> transformer, double basis, DoubleBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all entries using the given reducer to combine values, and the given basis as an identity value. |
reduceEntriesToInt​(long parallelismThreshold, ToIntFunction<Map.Entry<K,​V>> transformer, int basis, IntBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all entries using the given reducer to combine values, and the given basis as an identity value. |
reduceEntriesToLong​(long parallelismThreshold, ToLongFunction<Map.Entry<K,​V>> transformer, long basis, LongBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all entries using the given reducer to combine values, and the given basis as an identity value. |
reduceKeys​(long parallelismThreshold, BiFunction<? super K,​? super K,​? extends K> reducer) |
Returns the result of accumulating all keys using the given reducer to combine values, or null if none. |
reduceKeys​(long parallelismThreshold, Function<? super K,​? extends U> transformer, BiFunction<? super U,​? super U,​? extends U> reducer) |
Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, or null if none. |
reduceKeysToDouble​(long parallelismThreshold, ToDoubleFunction<? super K> transformer, double basis, DoubleBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, and the given basis as an identity value. |
reduceKeysToInt​(long parallelismThreshold, ToIntFunction<? super K> transformer, int basis, IntBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, and the given basis as an identity value. |
reduceKeysToLong​(long parallelismThreshold, ToLongFunction<? super K> transformer, long basis, LongBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, and the given basis as an identity value. |
reduceToDouble​(long parallelismThreshold, ToDoubleBiFunction<? super K,​? super V> transformer, double basis, DoubleBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, and the given basis as an identity value. |
reduceToInt​(long parallelismThreshold, ToIntBiFunction<? super K,​? super V> transformer, int basis, IntBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, and the given basis as an identity value. |
reduceToLong​(long parallelismThreshold, ToLongBiFunction<? super K,​? super V> transformer, long basis, LongBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, and the given basis as an identity value. |
reduceValues​(long parallelismThreshold, BiFunction<? super V,​? super V,​? extends V> reducer) |
Returns the result of accumulating all values using the given reducer to combine values, or null if none. |
reduceValues​(long parallelismThreshold, Function<? super V,​? extends U> transformer, BiFunction<? super U,​? super U,​? extends U> reducer) |
Returns the result of accumulating the given transformation of all values using the given reducer to combine values, or null if none. |
reduceValuesToDouble​(long parallelismThreshold, ToDoubleFunction<? super V> transformer, double basis, DoubleBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all values using the given reducer to combine values, and the given basis as an identity value. |
reduceValuesToInt​(long parallelismThreshold, ToIntFunction<? super V> transformer, int basis, IntBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all values using the given reducer to combine values, and the given basis as an identity value. |
reduceValuesToLong​(long parallelismThreshold, ToLongFunction<? super V> transformer, long basis, LongBinaryOperator reducer) |
Returns the result of accumulating the given transformation of all values using the given reducer to combine values, and the given basis as an identity value. |
remove​(Object key) |
Removes the key (and its corresponding value) from this map. |
remove​(Object key, Object value) |
Removes the entry for a key only if currently mapped to a given value. |
replace​(K key, V value) |
Replaces the entry for a key only if currently mapped to some value. |
replace​(K key, V oldValue, V newValue) |
Replaces the entry for a key only if currently mapped to a given value. |
search​(long parallelismThreshold, BiFunction<? super K,​? super V,​? extends U> searchFunction) |
Returns a non-null result from applying the given search function on each (key, value), or null if none. |
searchEntries​(long parallelismThreshold, Function<Map.Entry<K,​V>,​? extends U> searchFunction) |
Returns a non-null result from applying the given search function on each entry, or null if none. |
searchKeys​(long parallelismThreshold, Function<? super K,​? extends U> searchFunction) |
Returns a non-null result from applying the given search function on each key, or null if none. |
searchValues​(long parallelismThreshold, Function<? super V,​? extends U> searchFunction) |
Returns a non-null result from applying the given search function on each value, or null if none. |
toString() |
Returns a string representation of this map. |
values() |
Returns a Collection view of the values contained in this map. |