public enum EvictionPolicy extends Enum<EvictionPolicy>
Enum Constant and Description |
---|
ACCESS_COUNT
Field ACCESSED_COUNT.
|
EXPIRATION_TIME
Field EXPIRATION_TIME.
|
LAST_ACCESS_TIME
Field LAST_ACCESSED_TIME.
|
Modifier and Type | Method and Description |
---|---|
static EvictionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvictionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvictionPolicy LAST_ACCESS_TIME
public static final EvictionPolicy EXPIRATION_TIME
public static final EvictionPolicy ACCESS_COUNT
public static EvictionPolicy[] values()
for (EvictionPolicy c : EvictionPolicy.values()) System.out.println(c);
public static EvictionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.