JavaScript is disabled on your browser.
Overview
Package
Class
Tree
Deprecated
Index
Help
Prev Class
Next Class
Frames
No Frames
All Classes
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
com.google.common.cache
Interface Weigher<K,V>
@Beta
public interface
Weigher<K,V>
Calculates the weights of cache entries.
Since:
11.0
Method Summary
Methods
Modifier and Type
Method and Description
int
weigh
(
K
key,
V
value)
Returns the weight of a cache entry.
Method Detail
weigh
int weigh(
K
key,
V
value)
Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply relative to each other.
Returns:
the weight of the entry; must be non-negative
Overview
Package
Class
Tree
Deprecated
Index
Help
Prev Class
Next Class
Frames
No Frames
All Classes
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method