Enum Class Modification
- All Implemented Interfaces:
Serializable
,Comparable<Modification>
,Constable
This enum provides fields indicating a modification type. Each modification type is related to specific color.
- Since:
- 4.0.19
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Returns the color related to the modification.static Modification
Returns the enum constant of this class with the specified name.static Modification[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Indicates no modifications.- Since:
- 4.0.19
-
INSERTED
Indicates a modification based on an insertion of an element.- Since:
- 4.0.19
-
DELETED
Indicates a modification based on a deletion of an element.- Since:
- 4.0.19
-
CHANGED
Indicates a modifcation based on a change of an element.- Since:
- 4.0.19
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getColor
Returns the color related to the modification.- Since:
- 4.0.19
-