Package org.eclipse.emf.compare
Enum Class DifferenceState
- All Implemented Interfaces:
Serializable
,Comparable<DifferenceState>
,java.lang.constant.Constable
,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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe 'DISCARDED' literal object.The 'MERGED' literal object.The 'MERGING' literal object.The 'UNRESOLVED' literal object. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
The 'DISCARDED' literal value.static final int
The 'MERGED' literal value.static final int
The 'MERGING' literal value.static final int
The 'UNRESOLVED' literal value.static final List<DifferenceState>
A public read-only list of all the 'Difference State' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic DifferenceState
get
(int value) Returns the 'Difference State' literal with the specified integer value.static DifferenceState
Returns the 'Difference State' literal with the specified literal value.static DifferenceState
Returns the 'Difference State' literal with the specified name.getName()
int
getValue()
toString()
Returns the literal value of the enumerator, which is its string representation.static DifferenceState
Returns the enum constant of this class with the specified name.static DifferenceState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNRESOLVED
The 'UNRESOLVED' literal object.- See Also:
- Generated:
-
MERGED
The 'MERGED' literal object.- See Also:
- Generated:
-
DISCARDED
The 'DISCARDED' literal object.- See Also:
- Generated:
-
MERGING
The 'MERGING' literal object.- Since:
- 3.5
- See Also:
- Generated:
-
-
Field Details
-
copyright
- See Also:
- Generated:
-
UNRESOLVED_VALUE
public static final int UNRESOLVED_VALUEThe 'UNRESOLVED' literal value. Indicates that the Diff is still in its initial state.- See Also:
- Generated:
-
MERGED_VALUE
public static final int MERGED_VALUEThe 'MERGED' literal value. Indicates that the Diff has already been merged by the user.- See Also:
- Generated:
-
DISCARDED_VALUE
public static final int DISCARDED_VALUEThe 'DISCARDED' literal value. Indicates that the user chose to ignore this Diff.- See Also:
- Generated:
-
MERGING_VALUE
public static final int MERGING_VALUEThe 'MERGING' literal value. Indicates that the Diff is in the process of being merged.- Since:
- 3.4
- See Also:
- Generated:
-
VALUES
A public read-only list of all the 'Difference State' enumerators.- Generated:
-
-
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
-
get
Returns the 'Difference State' literal with the specified literal value.- Generated:
-
getByName
Returns the 'Difference State' literal with the specified name.- Generated:
-
get
Returns the 'Difference State' literal with the specified integer value.- Generated:
-
getValue
public int getValue()- Specified by:
getValue
in interfaceEnumerator
- Generated:
-
getName
- Specified by:
getName
in interfaceEnumerator
- Generated:
-
getLiteral
- Specified by:
getLiteral
in interfaceEnumerator
- Generated:
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<DifferenceState>
- Generated:
-