Top Description Fields Constructors Methods
com.github.benmanes.caffeine.cache

pack-priv final Class WriteThroughEntry<K, V>

extends AbstractMap.SimpleEntry<K, V>
Class Inheritance
Static Imports
java.util.Objects.requireNonNull

An entry that allows updates to write through to the backing map.
Author
[email protected] (Ben Manes)

Field Summary

Modifier and TypeField and Description
private final ConcurrentMap<K, V>
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
WriteThroughEntry(ConcurrentMap<K, V> map, K key, V value)

Method Summary

Modifier and TypeMethod and Description
public V
setValue(V
new value to be stored in this entry
value
)

Overrides java.util.AbstractMap.SimpleEntry.setValue.

Implements java.util.Map.Entry.setValue.

Replaces the value corresponding to this entry with the specified value.
pack-priv Object
Inherited from java.util.AbstractMap.SimpleEntry:
equalsgetKeygetValuehashCodetoString

Field Detail

mapback to summary
private final ConcurrentMap<K, V> map
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.AbstractMap.SimpleEntry.serialVersionUID.

Constructor Detail

WriteThroughEntryback to summary
pack-priv WriteThroughEntry(ConcurrentMap<K, V> map, K key, V value)

Method Detail

setValueback to summary
public V setValue(V value)

Overrides java.util.AbstractMap.SimpleEntry.setValue.

Implements java.util.Map.Entry.setValue.

Doc from java.util.AbstractMap.SimpleEntry.setValue.

Replaces the value corresponding to this entry with the specified value.

Parameters
value:V

new value to be stored in this entry

Returns:V

the old value corresponding to the entry

Annotations
@Override
@SuppressWarnings:PMD.LinguisticNaming
writeReplaceback to summary
pack-priv Object writeReplace()