ConcurrentHashMap.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ConcurrentHashMap | |
| pack-priv @Nullable Set | |
| pack-priv final Executor | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv @Nullable Set | |
| pack-priv static final System. | |
| pack-priv static final VarHandle | |
| pack-priv volatile @Nullable ConcurrentMap | |
| pack-priv final @Nullable RemovalListener | |
| pack-priv final StatsCounter | |
| pack-priv final Ticker | |
| pack-priv @Nullable Collection |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | clear()
Implements java. |
| public V | compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, @Nullable Expiry<? super K, ? super V> expiry, boolean recordLoad, boolean recordLoadFailure)
|
| public V | computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, boolean recordStats, boolean recordLoad)
Implements com. ConcurrentMap#computeIfAbsent.
|
| public @Nullable V | computeIfPresent(K
key with which the specified value is to be associated key, BiFunction<? super K, ? super V, ? extends V> the remapping function to compute a value remappingFunction)Overrides default java. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| pack-priv void | |
| public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public boolean | equals(Object
object to be compared for equality with this map o)Overrides java. Implements java. |
| public long | |
| public Executor | executor()
Implements com. Executor used by this cache.
|
| public Expiry | expiry()
Implements com. Expiry used by this cache.
|
| public void | forEach(BiConsumer<? super K, ? super V>
The action to be performed for each entry action)Overrides default java. |
| public @Nullable V | get(Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public Map | getAllPresent(Iterable<? extends K> keys)
Implements com. Cache#getAllPresent.
|
| public @Nullable V | getIfPresent(Object key, boolean recordStats)
Implements com. Cache#getIfPresent(K).
|
| public @Nullable V | |
| public int | hashCode()
Overrides java. Implements java. |
| private boolean | |
| public boolean | isAsync()
Implements com. |
| public boolean | |
| public boolean | isPendingEviction(K key)
Implements com. |
| public boolean | isRecordingStats()
Implements com. |
| public Set | |
| 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 remapping function to recompute a value if
present remappingFunction)Overrides default java. |
| public void | |
| public @Nullable V | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Implements java. |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map map)Implements java. |
| public @Nullable V | putIfAbsent(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Implements java. |
| public Object | referenceKey(K key)
Implements com. |
| public ConcurrentMap | refreshes()
Implements com. |
| pack-priv V | Returns: the new value associated with the specified key, or null if nonekey with which the specified value is to be associated key, BiFunction<? super K, ? super V, ? extends V> the function to compute a value remappingFunction)A |
| public @Nullable V | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
| 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 java. |
| public @Nullable V | replace(K
key with which the specified value is associated key, V value to be associated with the specified key value)Implements java. |
| 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 java. |
| public boolean | replace(K key, V oldValue, V newValue, boolean shouldDiscardRefresh)
Implements com. ConcurrentMap#replace(K, K, V).
|
| public void | replaceAll(BiFunction<? super K, ? super V, ? extends V>
the function to apply to each entry function)Overrides default java. |
| public int | |
| public StatsCounter | statsCounter()
Implements com. StatsCounter used by this cache.
|
| public Ticker | statsTicker()
Implements com. Ticker used by this cache for statistics.
|
| public String | |
| public Collection | values()
Implements java. Collection view of the values contained in this map.
|