Package org.eclipse.emf.compare
Enum Class DifferenceSource
- All Implemented Interfaces:
Serializable
,Comparable<DifferenceSource>
,java.lang.constant.Constable
,Enumerator
A representation of the literals of the enumeration 'Difference Source',
and utility methods for working with them.
This will be used to represent the source of a detected diff.
- LEFT if the difference has been detected between the left element and its origin,
- RIGHT if the difference has been detected between the right element and its origin.
- See Also:
- Generated:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
The 'LEFT' literal value.static final int
The 'RIGHT' literal value.static final List<DifferenceSource>
A public read-only list of all the 'Difference Source' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic DifferenceSource
get
(int value) Returns the 'Difference Source' literal with the specified integer value.static DifferenceSource
Returns the 'Difference Source' literal with the specified literal value.static DifferenceSource
Returns the 'Difference Source' literal with the specified name.getName()
int
getValue()
toString()
Returns the literal value of the enumerator, which is its string representation.static DifferenceSource
Returns the enum constant of this class with the specified name.static DifferenceSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
The 'LEFT' literal object.- See Also:
- Generated:
-
RIGHT
The 'RIGHT' literal object.- See Also:
- Generated:
-
-
Field Details
-
copyright
- See Also:
- Generated:
-
LEFT_VALUE
public static final int LEFT_VALUEThe 'LEFT' literal value. Will be used if the difference has been detected between the left element and its origin. Differences detected during two-way comparisons will always have this has their source.- See Also:
- Generated:
-
RIGHT_VALUE
public static final int RIGHT_VALUEThe 'RIGHT' literal value. Will be used if the difference has been detected between the right element and its origin.- See Also:
- Generated:
-
VALUES
A public read-only list of all the 'Difference Source' 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 Source' literal with the specified literal value.- Generated:
-
getByName
Returns the 'Difference Source' literal with the specified name.- Generated:
-
get
Returns the 'Difference Source' 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<DifferenceSource>
- Generated:
-