Enum DifferenceState

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

public enum DifferenceState
extends java.lang.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:
ComparePackage.getDifferenceState()
Generated:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    DISCARDED
    The 'DISCARDED' literal object.
    MERGED
    The 'MERGED' literal object.
    MERGING
    The 'MERGING' literal object.
    UNRESOLVED
    The 'UNRESOLVED' literal object.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String copyright
    static int DISCARDED_VALUE
    The 'DISCARDED' literal value.
    static int MERGED_VALUE
    The 'MERGED' literal value.
    static int MERGING_VALUE
    The 'MERGING' literal value.
    static int UNRESOLVED_VALUE
    The 'UNRESOLVED' literal value.
    static java.util.List<DifferenceState> VALUES
    A public read-only list of all the 'Difference State' enumerators.
  • Method Summary

    Modifier and Type Method Description
    static DifferenceState get​(int value)
    Returns the 'Difference State' literal with the specified integer value.
    static DifferenceState get​(java.lang.String literal)
    Returns the 'Difference State' literal with the specified literal value.
    static DifferenceState getByName​(java.lang.String name)
    Returns the 'Difference State' literal with the specified name.
    java.lang.String getLiteral()
    java.lang.String getName()
    int getValue()
    java.lang.String toString()
    Returns the literal value of the enumerator, which is its string representation.
    static DifferenceState valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static DifferenceState[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

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

  • Field Details

  • Method Details

    • values

      public static DifferenceState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DifferenceState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • get

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

      public static DifferenceState getByName​(java.lang.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 java.lang.String getName()
      Specified by:
      getName in interface Enumerator
      Generated:
    • getLiteral

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

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