Top Description Methods
org.apache.groovy.util.concurrent.concurrentlinkedhashmap

public Interface Weigher<V>

Known Direct Implementers
org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers.SingletonWeigher, org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers.ByteArrayWeigher, org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers.IterableWeigher, org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers.CollectionWeigher, org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers.ListWeigher, org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers.SetWeigher, org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers.MapWeigher
Annotations
@ThreadSafe
Imports
javax.annotation.concurrent.ThreadSafe

A class that can determine the weight of a value. The total weight threshold is used to determine when an eviction is required.
See Also
http://code.google.com/p/concurrentlinkedhashmap/

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the object's weight
weightOf
(V
the object to weigh
value
)

Measures an object's weight to determine how many units of capacity that the value consumes.

Method Detail

weightOfback to summary
public int weightOf(V value)

Measures an object's weight to determine how many units of capacity that the value consumes. A value must consume a minimum of one unit.

Parameters
value:V

the object to weigh

Returns:int

the object's weight