Package com.google.common.cache
Class LocalCache.WeightedStrongValueReference<K,V>
java.lang.Object
com.google.common.cache.LocalCache.StrongValueReference<K,V>
com.google.common.cache.LocalCache.WeightedStrongValueReference<K,V>
- All Implemented Interfaces:
LocalCache.ValueReference<K,
V>
- Enclosing class:
LocalCache<K,
V>
static final class LocalCache.WeightedStrongValueReference<K,V>
extends LocalCache.StrongValueReference<K,V>
References a strong value.
-
Field Summary
FieldsFields inherited from class com.google.common.cache.LocalCache.StrongValueReference
referent
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.cache.LocalCache.StrongValueReference
copyFor, get, getEntry, isActive, isLoading, notifyNewValue, waitForValue
-
Field Details
-
weight
final int weight
-
-
Constructor Details
-
WeightedStrongValueReference
WeightedStrongValueReference(V referent, int weight)
-
-
Method Details
-
getWeight
public int getWeight()Description copied from interface:LocalCache.ValueReference
Returns the weight of this entry. This is assumed to be static between calls to setValue.- Specified by:
getWeight
in interfaceLocalCache.ValueReference<K,
V> - Overrides:
getWeight
in classLocalCache.StrongValueReference<K,
V>
-