- java.lang.Object
-
- java.lang.Enum<Cached.Action>
-
- com.erudika.para.core.annotations.Cached.Action
-
- All Implemented Interfaces:
Serializable,Comparable<Cached.Action>
- Enclosing class:
- Cached
public static enum Cached.Action extends Enum<Cached.Action>
The type of cache operation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Cached.ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static Cached.Action[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOOP
public static final Cached.Action NOOP
No operation. Do nothing.
-
PUT
public static final Cached.Action PUT
Put an object in cache.
-
GET
public static final Cached.Action GET
Get an object from cache.
-
DELETE
public static final Cached.Action DELETE
Delete an object from cache.
-
GET_ALL
public static final Cached.Action GET_ALL
Get all objects from cache.
-
PUT_ALL
public static final Cached.Action PUT_ALL
Put all objects in cache.
-
DELETE_ALL
public static final Cached.Action DELETE_ALL
Delete all objects from cache.
-
-
Method Detail
-
values
public static Cached.Action[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Cached.Action c : Cached.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Cached.Action valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-