Package com.bayesserver
Enum CollectionAction
- java.lang.Object
-
- java.lang.Enum<CollectionAction>
-
- com.bayesserver.CollectionAction
-
- All Implemented Interfaces:
Serializable
,Comparable<CollectionAction>
public enum CollectionAction extends Enum<CollectionAction>
Specifies how the collection is changed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLEAR
Specifies that the entire collection has been cleared.INSERT
Specifies that an element was added to the collection.REMOVE
Specifies that an element was removed from the collection.REPLACE
Specifies that an element was replaced in the collection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CollectionAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static CollectionAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT
public static final CollectionAction INSERT
Specifies that an element was added to the collection.
-
REMOVE
public static final CollectionAction REMOVE
Specifies that an element was removed from the collection.
-
REPLACE
public static final CollectionAction REPLACE
Specifies that an element was replaced in the collection.
-
CLEAR
public static final CollectionAction CLEAR
Specifies that the entire collection has been cleared.
-
-
Method Detail
-
values
public static CollectionAction[] 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 (CollectionAction c : CollectionAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollectionAction 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
-
-