static enum CacheBuilder.OneWeigher extends java.lang.Enum<CacheBuilder.OneWeigher> implements Weigher<java.lang.Object,java.lang.Object>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static CacheBuilder.OneWeigher |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheBuilder.OneWeigher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
weigh(java.lang.Object key,
java.lang.Object value)
Returns the weight of a cache entry.
|
public static final CacheBuilder.OneWeigher INSTANCE
public static CacheBuilder.OneWeigher[] values()
for (CacheBuilder.OneWeigher c : CacheBuilder.OneWeigher.values()) System.out.println(c);
public static CacheBuilder.OneWeigher valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int weigh(java.lang.Object key,
java.lang.Object value)
Weigher