Class Weighers.EntryWeigherView<K,V>
java.lang.Object
com.googlecode.concurrentlinkedhashmap.Weighers.EntryWeigherView<K,V>
- All Implemented Interfaces:
EntryWeigher<K,,V> Serializable
- Enclosing class:
Weighers
static final class Weighers.EntryWeigherView<K,V>
extends Object
implements EntryWeigher<K,V>, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
weigher
-
-
Constructor Details
-
EntryWeigherView
-
-
Method Details
-
weightOf
Description copied from interface:EntryWeigherMeasures an entry's weight to determine how many units of capacity that the key and value consumes. An entry must consume a minimum of one unit.- Specified by:
weightOfin interfaceEntryWeigher<K,V> - Parameters:
key- the key to weighvalue- the value to weigh- Returns:
- the entry's weight
-