The type OclComparable defines the compareTo operation used by the sortedBy iteration. Only types that provide a derived compareTo implementation may be sorted.
conformsTo
OclAny
Operations
compareTo(that : OclSelf) : Integer
Return -ve, 0, +ve according to whether self is less than, equal to , or greater than that.
The compareTo operation should be commutative.
>(that : OclSelf) : Boolean
precedence:
RELATIONAL
True if
self
is greater than
that
.
<(that : OclSelf) : Boolean
precedence:
RELATIONAL
True if
self
is less than
that
.
<=(that : OclSelf) : Boolean
precedence:
RELATIONAL
True if
self
is less than or equal to
that
.
>=(that : OclSelf) : Boolean
precedence:
RELATIONAL
True if
self
is greater than or equal to
that
.