Enum Class DifferenceType

java.lang.Object
java.lang.Enum<DifferenceType>
ro.sync.diff.api.DifferenceType
All Implemented Interfaces:
Serializable, Comparable<DifferenceType>, Constable

@API(type=NOT_EXTENDABLE, src=PUBLIC) public enum DifferenceType extends Enum<DifferenceType>
Represents the type a Difference can have.
Since:
22
  • Enum Constant Details

    • BOTH_CHANGED

      public static final DifferenceType BOTH_CHANGED
      Both the left and right difference intervals have changes. 1
    • LEFT_CHANGED

      public static final DifferenceType LEFT_CHANGED
      The left difference interval has changes. 2
    • RIGHT_CHANGED

      public static final DifferenceType RIGHT_CHANGED
      The right difference interval has changes. 3
  • Method Details

    • values

      public static DifferenceType[] 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 DifferenceType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DifferenceType>
      See Also: