javadoc.com.google.common.cache.Weigher.html Maven / Gradle / Ivy
The newest version!
Weigher (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.cache
Interface Weigher<K,V>
@Beta
public interface Weigher<K,V>
Calculates the weights of cache entries.
- Since:
- 11.0
- Author:
- [email protected] (Charles Fry)
Method Summary | |
---|---|
int |
weigh(K key,
V value)
Returns the weight of a cache entry. |
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy