- java.lang.Object
-
- java.lang.Enum<Indexed.Action>
-
- com.erudika.para.core.annotations.Indexed.Action
-
- All Implemented Interfaces:
Serializable,Comparable<Indexed.Action>
- Enclosing class:
- Indexed
public static enum Indexed.Action extends Enum<Indexed.Action>
The search action performed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDAdds an object to index.ADD_ALLAdds many objects to index.NOOPNo operation.REMOVERemoves object from index.REMOVE_ALLRemoves many objects from index.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Indexed.ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static Indexed.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 Indexed.Action NOOP
No operation. Do nothing.
-
ADD
public static final Indexed.Action ADD
Adds an object to index.
-
REMOVE
public static final Indexed.Action REMOVE
Removes object from index.
-
ADD_ALL
public static final Indexed.Action ADD_ALL
Adds many objects to index.
-
REMOVE_ALL
public static final Indexed.Action REMOVE_ALL
Removes many objects from index.
-
-
Method Detail
-
values
public static Indexed.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 (Indexed.Action c : Indexed.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 Indexed.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
-
-