Package org.ametys.runtime.model.compare
Enum DataChangeType
- java.lang.Object
-
- java.lang.Enum<DataChangeType>
-
- org.ametys.runtime.model.compare.DataChangeType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataChangeType>
public enum DataChangeType extends Enum<DataChangeType>
General type of data change
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DataChangeType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataChangeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataChangeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDED
public static final DataChangeType ADDED
The data is added in the new object
-
REMOVED
public static final DataChangeType REMOVED
The data is removed in the new object
-
MODIFIED
public static final DataChangeType MODIFIED
The data is modified in the new object
-
-
Constructor Detail
-
DataChangeType
private DataChangeType()
-
-
Method Detail
-
values
public static DataChangeType[] 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 (DataChangeType c : DataChangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataChangeType 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
-
-