Package com.deltawalker.script
Enum Class Delta.Kind
- All Implemented Interfaces:
Serializable,Comparable<Delta.Kind>,Constable
- Enclosing interface:
Delta
The kinds of difference between the two items of a relation.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContent - a block of text, a file or a folder - that was added: it is present in only one item of a relation.Both items of a relation - files, folders, blocks of text - are present, and different.Content that was deleted: it is missing from one item of a relation.No difference. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Delta.KindReturns the enum constant of this class with the specified name.static Delta.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ADDED
Content - a block of text, a file or a folder - that was added: it is present in only one item of a relation. SeeDelta.kind(Role[])for how the direction is reported. -
CHANGED
Both items of a relation - files, folders, blocks of text - are present, and different.In a three-way comparison the same applies to each of the three relations:
Role.ONE-Role.REF,Role.REF-Role.TWOandRole.ONE-Role.TWO. In addition to the fourKinds, the overall result of a three-way comparison can be a conflict or a pseudo-conflict.- See Also:
-
DELETED
Content that was deleted: it is missing from one item of a relation. SeeDelta.kind(Role[])for how the direction is reported. -
SAME
No difference.
-
-
Field Details
-
COUNT
public static final byte COUNTThe number of constants in this enum.
-
-
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
-