V
- The value type@ThreadSafe
public interface Weigher<V>
Modifier and Type | Method and Description |
---|---|
int |
weightOf(V value)
Measures an object's weight to determine how many units of capacity that
the value consumes.
|
int weightOf(V value)
value
- the object to weigh