Package com.cedarsoftware.util
Enum GraphComparator.Delta.Command
- java.lang.Object
-
- java.lang.Enum<GraphComparator.Delta.Command>
-
- com.cedarsoftware.util.GraphComparator.Delta.Command
-
- All Implemented Interfaces:
Serializable,Comparable<GraphComparator.Delta.Command>
- Enclosing class:
- GraphComparator.Delta
public static enum GraphComparator.Delta.Command extends Enum<GraphComparator.Delta.Command>
These are all possible Delta.Commands that are generated when performing the graph comparison.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_RESIZEARRAY_SET_ELEMENTLIST_RESIZELIST_SET_ELEMENTMAP_PUTMAP_REMOVEOBJECT_ASSIGN_FIELDOBJECT_FIELD_TYPE_CHANGEDOBJECT_ORPHANSET_ADDSET_REMOVE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphComparator.Delta.CommandfromName(String name)StringgetName()static GraphComparator.Delta.CommandvalueOf(String name)Returns the enum constant of this type with the specified name.static GraphComparator.Delta.Command[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY_SET_ELEMENT
public static final GraphComparator.Delta.Command ARRAY_SET_ELEMENT
-
ARRAY_RESIZE
public static final GraphComparator.Delta.Command ARRAY_RESIZE
-
OBJECT_ASSIGN_FIELD
public static final GraphComparator.Delta.Command OBJECT_ASSIGN_FIELD
-
OBJECT_ORPHAN
public static final GraphComparator.Delta.Command OBJECT_ORPHAN
-
OBJECT_FIELD_TYPE_CHANGED
public static final GraphComparator.Delta.Command OBJECT_FIELD_TYPE_CHANGED
-
SET_ADD
public static final GraphComparator.Delta.Command SET_ADD
-
SET_REMOVE
public static final GraphComparator.Delta.Command SET_REMOVE
-
MAP_PUT
public static final GraphComparator.Delta.Command MAP_PUT
-
MAP_REMOVE
public static final GraphComparator.Delta.Command MAP_REMOVE
-
LIST_RESIZE
public static final GraphComparator.Delta.Command LIST_RESIZE
-
LIST_SET_ELEMENT
public static final GraphComparator.Delta.Command LIST_SET_ELEMENT
-
-
Method Detail
-
values
public static GraphComparator.Delta.Command[] 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 (GraphComparator.Delta.Command c : GraphComparator.Delta.Command.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraphComparator.Delta.Command 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
-
getName
public String getName()
-
fromName
public static GraphComparator.Delta.Command fromName(String name)
-
-