public interface ComparableValue<T> extends Value, OCLValue, java.lang.Comparable<T>
INVALID_NAME
Modifier and Type | Method and Description |
---|---|
int |
commutatedCompareTo(ComparableValue<?> left)
Return -left.compareTo(this).
|
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, getTypeId, isInvalid, isUndefined, toString
oclEquals, oclHashCode
int commutatedCompareTo(@NonNull ComparableValue<?> left)
This is an internal method used to give righthand argument an opportunity to coerce its tyope to suit the lefthand. It is invoked when a direct compareTo is unable to compare left with this. Derived implementations must not invoke comoareTo in order to avoid an infinite commutation.