Enum Class Delta.Kind

java.lang.Object
java.lang.Enum<Delta.Kind>
com.deltawalker.script.Delta.Kind
All Implemented Interfaces:
Serializable, Comparable<Delta.Kind>, Constable
Enclosing interface:
Delta

public static enum Delta.Kind extends Enum<Delta.Kind>
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 Constants
    Enum Constant
    Description
    Content - 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
    Modifier and Type
    Field
    Description
    static final byte
    The number of constants in this enum.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Delta.Kind
    Returns the enum constant of this class with the specified name.
    static Delta.Kind[]
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ADDED

      public static final Delta.Kind ADDED
      Content - a block of text, a file or a folder - that was added: it is present in only one item of a relation. See Delta.kind(Role[]) for how the direction is reported.
    • CHANGED

      public static final Delta.Kind 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.TWO and Role.ONE - Role.TWO. In addition to the four Kinds, the overall result of a three-way comparison can be a conflict or a pseudo-conflict.

      See Also:
    • DELETED

      public static final Delta.Kind DELETED
      Content that was deleted: it is missing from one item of a relation. See Delta.kind(Role[]) for how the direction is reported.
    • SAME

      public static final Delta.Kind SAME
      No difference.
  • Field Details

    • COUNT

      public static final byte COUNT
      The number of constants in this enum.
  • Method Details

    • values

      public static Delta.Kind[] 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

      public static Delta.Kind valueOf(String name)
      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 name
      NullPointerException - if the argument is null