MCPcopy
hub / github.com/google/guava / weigh

Method weigh

android/guava/src/com/google/common/cache/Weigher.java:34–34  ·  view source on GitHub ↗

Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply relative to each other. @return the weight of the entry; must be non-negative

(K key, V value)

Source from the content-addressed store, hash-verified

32 * @return the weight of the entry; must be non-negative
33 */
34 int weigh(K key, V value);
35}

Callers 2

setValueMethod · 0.65
setValueMethod · 0.65

Implementers 8

ConstantWeigherguava-tests/test/com/google/common/cac
IntKeyWeigherguava-tests/test/com/google/common/cac
IntValueWeigherguava-tests/test/com/google/common/cac
SerializableWeigherguava-tests/test/com/google/common/cac
ConstantWeigherandroid/guava-tests/test/com/google/co
IntKeyWeigherandroid/guava-tests/test/com/google/co
IntValueWeigherandroid/guava-tests/test/com/google/co
SerializableWeigherandroid/guava-tests/test/com/google/co

Calls

no outgoing calls

Tested by

no test coverage detected