public interface Weigher<V>
A class that can determine the weight of a value. The total weight threshold
is used to determine when an eviction is required.
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.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.