| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private final ConcurrentMap | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public V | compute(K
key with which the specified value is to be associated key, BiFunction<? super K, ? super V, ? extends V> the function to compute a value remappingFunction)Implements io. Attempts to compute a mapping for the specified key and its current
mapped value (or |
| public V | computeIfAbsent(K
key with which the specified value is to be associated key, Function<? super K, ? extends V> the function to compute a value mappingFunction)Implements io. If the specified key is not already associated with a value (or is mapped
to |
| public V | computeIfPresent(K
key with which the specified value is to be associated key, BiFunction<? super K, ? super V, ? extends V> the function to compute a value remappingFunction)Implements io. If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements io. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements io. Returns @{code true} if this map maps one or more keys to the specified value. |
| public Set | entrySet()
Implements io. Returns a |
| public void | forEach(BiConsumer<? super K, ? super V>
The action to be performed for each entry action)Implements io. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| public V | |
| public V | getOrDefault(Object
the key whose associated value is to be returned key, V the default mapping of the key defaultValue)Implements io. Returns the value to which the specified key is mapped, or
|
| public boolean | isEmpty()
Implements io. Returns |
| public Set | keySet()
Implements io. Returns a |
| public V | merge(K
key with which the resulting value is to be associated key, V the non-null value to be merged with the existing value
associated with the key or, if no existing value or a null value
is associated with the key, to be associated with the key value, BiFunction<? super V, ? super V, ? extends V> the function to recompute a value if present remappingFunction)Implements io. If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. |
| public V | put(K
the key key, V the value value)Implements io. Put an entry in the map |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map m)Implements io. Copies all of the mappings from the specified map to this map. |
| public V | putIfAbsent(K
the key key, V the value value)Implements io. Put the entry only if there is no existing entry for that key |
| public V | remove(Object
the key key)Implements io. Remove an entry from the map |
| public boolean | remove(Object
key with which the specified value is associated key, Object value expected to be associated with the specified key value)Implements io. Removes the entry for the specified key only if it is currently mapped to the specified value. |
| public boolean | removeIfPresent(K
the key key, V the value value)Implements io. Remove the entry only if there is an entry with the specified key and value. |
| public boolean | replace(K
key with which the specified value is associated key, V value expected to be associated with the specified key oldValue, V value to be associated with the specified key newValue)Implements io. Replaces the entry for the specified key only if currently mapped to the specified value. |
| public V | replace(K
the key key, V the new value value)Implements io. Replace the entry only if there is an existing entry with the key |
| public void | replaceAll(BiFunction<? super K, ? super V, ? extends V>
the function to apply to each entry function)Implements io. Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. |
| public boolean | replaceIfPresent(K
the key key, V the old value oldValue, V the new value newValue)Implements io. Replace the entry only if there is an existing entry with the specified key and value. |
| public int | |
| public String | |
| private BiFunction | Returns: the compositionthe function function)Composes the given bi-function ( |
| private Function | Returns: the compositionthe function function)Composes the given function ( |
| public Collection | values()
Implements io. Returns a |
| map | back to summary |
|---|---|
| private final ConcurrentMap<K, V> map | |
| maps | back to summary |
|---|---|
| private final ConcurrentMap<String, LocalMap<?, ?>> maps | |
| name | back to summary |
|---|---|
| private final String name | |
| LocalMapImpl | back to summary |
|---|---|
| pack-priv LocalMapImpl(String name, ConcurrentMap<String, LocalMap<?, ?>> maps) | |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Clear all entries in the map
| |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close and release the map
| |
| compute | back to summary |
|---|---|
| public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) Implements io. Doc from io. Attempts to compute a mapping for the specified key and its current
mapped value (or
If the function returns
| |
| computeIfAbsent | back to summary |
|---|---|
| public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) Implements io. Doc from io. If the specified key is not already associated with a value (or is mapped
to
If the function returns | |
| computeIfPresent | back to summary |
|---|---|
| public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) Implements io. Doc from io. If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
If the function returns
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements io. Doc from io. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements io. Doc from io. Returns @{code true} if this map maps one or more keys to the specified value. | |
| entrySet | back to summary |
|---|---|
| public Set Implements io. Doc from io. Returns a
Unlike the default | |
| forEach | back to summary |
|---|---|
| public void forEach(BiConsumer<? super K, ? super V> action) Implements io. Doc from io. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Exceptions thrown by the action are relayed to the caller.
| |
| get | back to summary |
|---|---|
| public V get(Object key) Implements io. Doc from io. Get a value from the map | |
| getOrDefault | back to summary |
|---|---|
| public V getOrDefault(Object key, V defaultValue) Implements io. Doc from io. Returns the value to which the specified key is mapped, or
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements io. Doc from java. Returns a
| |
| merge | back to summary |
|---|---|
| public V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) Implements io. Doc from io. If the specified key is not already associated with a value or is
associated with null, associates it with the given non-null value.
Otherwise, replaces the associated value with the results of the given
remapping function, or removes if the result is
| |
| put | back to summary |
|---|---|
| public V put(K key, V value) Implements io. Doc from io. Put an entry in the map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends K, ? extends V> m) Implements io. Doc from io. Copies all of the mappings from the specified map to this map. The effect of this call is equivalent to that
of calling | |
| putIfAbsent | back to summary |
|---|---|
| public V putIfAbsent(K key, V value) Implements io. Doc from io. Put the entry only if there is no existing entry for that key
| |
| remove | back to summary |
|---|---|
| public V remove(Object key) Implements io. Doc from io. Remove an entry from the map | |
| remove | back to summary |
|---|---|
| public boolean remove(Object key, Object value) Implements io. Doc from io. Removes the entry for the specified key only if it is currently mapped to the specified value. | |
| removeIfPresent | back to summary |
|---|---|
| public boolean removeIfPresent(K key, V value) Implements io. Doc from io. Remove the entry only if there is an entry with the specified key and value.
This method is the poyglot version of
| |
| replace | back to summary |
|---|---|
| public boolean replace(K key, V oldValue, V newValue) Implements io. Doc from io. Replaces the entry for the specified key only if currently mapped to the specified value.
| |
| replace | back to summary |
|---|---|
| public V replace(K key, V value) Implements io. Doc from io. Replace the entry only if there is an existing entry with the key
| |
| replaceAll | back to summary |
|---|---|
| public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) Implements io. Doc from io. Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. Exceptions thrown by the function are relayed to the caller.
| |
| replaceIfPresent | back to summary |
|---|---|
| public boolean replaceIfPresent(K key, V oldValue, V newValue) Implements io. Doc from io. Replace the entry only if there is an existing entry with the specified key and value.
This method is the polyglot version of
| |
| size | back to summary |
|---|---|
| public int size() Implements io. Doc from io. Get the size of the map
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| typeChecked | back to summary |
|---|---|
| private BiFunction Composes the given bi-function (
| |
| typeChecked | back to summary |
|---|---|
| private Function Composes the given function ( | |
| values | back to summary |
|---|---|
| public Collection Implements io. Doc from java. Returns a
| |