static final class ConcurrentLinkedHashMap.BoundedEntryWeigher<K,V> extends Object implements EntryWeigher<K,V>, Serializable
| Modifier and Type | Field and Description |
|---|---|
(package private) static long |
serialVersionUID |
(package private) EntryWeigher<? super K,? super V> |
weigher |
| Constructor and Description |
|---|
BoundedEntryWeigher(EntryWeigher<? super K,? 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.
|
(package private) Object |
writeReplace() |
static final long serialVersionUID
final EntryWeigher<? super K,? super V> weigher
BoundedEntryWeigher(EntryWeigher<? super K,? super V> weigher)
public int weightOf(K key, V value)
EntryWeigherweightOf in interface EntryWeigher<K,V>key - the key to weighvalue - the value to weighObject writeReplace()
Copyright © 2010-2020 Toolsverse. All Rights Reserved.