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
Fields Modifier and Type Field Description (package private) int
weight
-
Fields inherited from class com.google.common.cache.LocalCache.StrongValueReference
referent
-
-
Constructor Summary
Constructors Constructor Description WeightedStrongValueReference(V referent, int weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getWeight()
Returns the weight of this entry.-
Methods inherited from class com.google.common.cache.LocalCache.StrongValueReference
copyFor, get, getEntry, isActive, isLoading, notifyNewValue, waitForValue
-
-
-
-
Constructor Detail
-
WeightedStrongValueReference
WeightedStrongValueReference(V referent, int weight)
-
-
Method Detail
-
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>
-
-