static final class Weighers.EntryWeigherView<K,V> extends Object implements EntryWeigher<K,V>, Serializable
Modifier and Type | Field and Description |
---|---|
(package private) static long |
serialVersionUID |
(package private) Weigher<? super V> |
weigher |
Constructor and Description |
---|
EntryWeigherView(Weigher<? super V> weigher) |
Modifier and Type | Method and Description |
---|---|
int |
weightOf(K key,
V value)
Measures an entry's weight to determine how many units of capacity that
the key and value consumes.
|
static final long serialVersionUID
public int weightOf(K key, V value)
EntryWeigher
weightOf
in interface EntryWeigher<K,V>
key
- the key to weighvalue
- the value to weighCopyright © 2010-2020 Toolsverse. All Rights Reserved.