public static enum BoundedCache.Policy extends Enum<BoundedCache.Policy>
Enum Constant and Description |
---|
FIFO |
LEAST_USED |
Modifier and Type | Method and Description |
---|---|
static BoundedCache.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BoundedCache.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoundedCache.Policy LEAST_USED
public static final BoundedCache.Policy FIFO
public static BoundedCache.Policy[] values()
for (BoundedCache.Policy c : BoundedCache.Policy.values()) System.out.println(c);
public static BoundedCache.Policy 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 null