org.silverpeas.notification.jsondiff
Enum Op
java.lang.Object
java.lang.Enum<Op>
org.silverpeas.notification.jsondiff.Op
- All Implemented Interfaces:
- Serializable, Comparable<Op>
public enum Op
- extends Enum<Op>
Patch Operations
- Author:
- ehugonnet
Method Summary |
static Op |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
add
public static final Op add
remove
public static final Op remove
replace
public static final Op replace
move
public static final Op move
copy
public static final Op copy
test
public static final Op test
none
public static final Op none
values
public static Op[] 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 (Op c : Op.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Op 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 name
NullPointerException
- if the argument is null
Copyright © 2016 Silverpeas. All Rights Reserved.