public static enum Cache.EvictionStrategy extends Enum<Cache.EvictionStrategy>
Enum Constant and Description |
---|
LEAST_FREQUENTLY_USED |
LEAST_RECENTLY_ADDED |
LEAST_RECENTLY_USED |
Modifier and Type | Method and Description |
---|---|
static Cache.EvictionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cache.EvictionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cache.EvictionStrategy LEAST_RECENTLY_USED
public static final Cache.EvictionStrategy LEAST_FREQUENTLY_USED
public static final Cache.EvictionStrategy LEAST_RECENTLY_ADDED
public static Cache.EvictionStrategy[] values()
for (Cache.EvictionStrategy c : Cache.EvictionStrategy.values()) System.out.println(c);
public static Cache.EvictionStrategy 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 © 2016 huihoo. All rights reserved.