Guava: Google Core Libraries for Java 25.1.0.jre-redhat-00001
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@GwtCompatible
@FunctionalInterface
public interface Weigher<K,V>
Calculates the weights of cache entries.
- Since:
- 11.0
- Author:
- Charles Fry
-
-
Method Detail
-
weigh
int weigh(K key,
V value)
Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply
relative to each other.
- Returns:
- the weight of the entry; must be non-negative
Guava: Google Core Libraries for Java 25.1.0.jre-redhat-00001
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Copyright © 2010–2020 JBoss by Red Hat. All rights reserved.