|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@ThreadSafe public interface Weigher<V>
A class that can determine the weight of a value. The total weight threshold is used to determine when an eviction is required.
| Method Summary | |
|---|---|
int |
weightOf(V value)
Measures an object's weight to determine how many units of capacity that the value consumes. |
| Method Detail |
|---|
int weightOf(V value)
value - the object to weigh
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||