public enum ScalarConstraintDifference extends Enum<ScalarConstraintDifference> implements Enumeration
ScalarDifferenceOfSegmentConstraint.| Enum Constant and Description | 
|---|
ABSOLUTE_VALUE
Use the absolute value of the difference between the final and initial state. 
 | 
FINAL_MINUS_INITIAL
Use the value at the segment's final state minus the value at the initial state. 
 | 
INITIAL_MINUS_FINAL
Use the value at the segment's initial state minus the value at the final state. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ScalarConstraintDifference | 
getDefault()
Get the enum constant that is considered to be the default. 
 | 
static ScalarConstraintDifference | 
getFromValue(int value)
Get the enum constant that is associated with the given numeric value. 
 | 
int | 
getValue()
Get the numeric value associated with this enum constant. 
 | 
static ScalarConstraintDifference | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static ScalarConstraintDifference[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final ScalarConstraintDifference FINAL_MINUS_INITIAL
public static final ScalarConstraintDifference INITIAL_MINUS_FINAL
public static final ScalarConstraintDifference ABSOLUTE_VALUE
public static ScalarConstraintDifference[] values()
for (ScalarConstraintDifference c : ScalarConstraintDifference.values()) System.out.println(c);
public static ScalarConstraintDifference valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
getValue in interface Enumeration@Nonnull public static ScalarConstraintDifference getFromValue(int value)
value - a numeric value.@Nonnull public static ScalarConstraintDifference getDefault()