Package ro.sync.diff.api
Enum Class DifferenceType
- All Implemented Interfaces:
Serializable
,Comparable<DifferenceType>
,Constable
Represents the type a
Difference
can have.- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoth the left and right difference intervals have changes.The left difference interval has changes.The right difference interval has changes. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static DifferenceType
Returns the enum constant of this class with the specified name.static DifferenceType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOTH_CHANGED
Both the left and right difference intervals have changes.1
-
LEFT_CHANGED
The left difference interval has changes.2
-
RIGHT_CHANGED
The right difference interval has changes.3
-
-
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
-
toString
- Overrides:
toString
in classEnum<DifferenceType>
- See Also:
-