static enum LocalCache.Strength extends java.lang.Enum<LocalCache.Strength>
Modifier and Type | Method and Description |
---|---|
(package private) abstract Equivalence<java.lang.Object> |
defaultEquivalence()
Returns the default equivalence strategy used to compare and hash keys or values referenced
at this strength.
|
(package private) abstract <K,V> LocalCache.ValueReference<K,V> |
referenceValue(LocalCache.Segment<K,V> segment,
ReferenceEntry<K,V> entry,
V value,
int weight)
Creates a reference for the given value according to this value strength.
|
static LocalCache.Strength |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocalCache.Strength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalCache.Strength STRONG
public static final LocalCache.Strength SOFT
public static final LocalCache.Strength WEAK
public static LocalCache.Strength[] values()
for (LocalCache.Strength c : LocalCache.Strength.values()) System.out.println(c);
public static LocalCache.Strength 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 nullabstract <K,V> LocalCache.ValueReference<K,V> referenceValue(LocalCache.Segment<K,V> segment, ReferenceEntry<K,V> entry, V value, int weight)
abstract Equivalence<java.lang.Object> defaultEquivalence()