Enum Class DifferenceState

java.lang.Object
java.lang.Enum<DifferenceState>
org.eclipse.emf.compare.DifferenceState
All Implemented Interfaces:
Serializable, Comparable<DifferenceState>, java.lang.constant.Constable, Enumerator

public enum DifferenceState extends Enum<DifferenceState> implements Enumerator
A representation of the literals of the enumeration 'Difference State', and utility methods for working with them. This will be used to represent the state of a detected diff.
  • UNRESOLVED if the Diff is still in its initial state and the two sides differ,
  • MERGED if the Diff has already been merged by the user,
  • DISCARDED if the user chose to ignore this Diff,
  • MERGING if the Diff is in the process of being merged.
See Also:
Generated:
  • Enum Constant Details

  • Field Details

    • UNRESOLVED_VALUE

      public static final int UNRESOLVED_VALUE
      The 'UNRESOLVED' literal value. Indicates that the Diff is still in its initial state.
      See Also:
      Generated:
    • MERGED_VALUE

      public static final int MERGED_VALUE
      The 'MERGED' literal value. Indicates that the Diff has already been merged by the user.
      See Also:
      Generated:
    • DISCARDED_VALUE

      public static final int DISCARDED_VALUE
      The 'DISCARDED' literal value. Indicates that the user chose to ignore this Diff.
      See Also:
      Generated:
    • MERGING_VALUE

      public static final int MERGING_VALUE
      The 'MERGING' literal value. Indicates that the Diff is in the process of being merged.
      Since:
      3.4
      See Also:
      Generated:
    • VALUES

      public static final List<DifferenceState> VALUES
      A public read-only list of all the 'Difference State' enumerators.
      Generated:
  • Method Details

    • values

      public static DifferenceState[] 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 DifferenceState 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
    • get

      public static DifferenceState get(String literal)
      Returns the 'Difference State' literal with the specified literal value.
      Generated:
    • getByName

      public static DifferenceState getByName(String name)
      Returns the 'Difference State' literal with the specified name.
      Generated:
    • get

      public static DifferenceState get(int value)
      Returns the 'Difference State' literal with the specified integer value.
      Generated:
    • getValue

      public int getValue()
      Specified by:
      getValue in interface Enumerator
      Generated:
    • getName

      public String getName()
      Specified by:
      getName in interface Enumerator
      Generated:
    • getLiteral

      public String getLiteral()
      Specified by:
      getLiteral in interface Enumerator
      Generated:
    • toString

      public String toString()
      Returns the literal value of the enumerator, which is its string representation.
      Overrides:
      toString in class Enum<DifferenceState>
      Generated: