|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objects with a symmetric compareTo operation.
Class Specifications |
instance public invariant ( \forall org.jmlspecs.models.resolve.SymmetricCompareTo x, y; x != null&&y != null&&x.isComparableTo(y)||y.isComparableTo(x); (x.isComparableTo(y)&&y.isComparableTo(x))&&(x.compareTo(y) < 0 <==> y.compareTo(x) < 0)&&(x.compareTo(y) == 0 <==> y.compareTo(x) == 0)); instance public invariant_redundantly ( \forall org.jmlspecs.models.resolve.SymmetricCompareTo x, y; x != null&&y != null&&x.isComparableTo(y)||y.isComparableTo(x); (x.isComparableTo(y)&&y.isComparableTo(x))&&x.compareTo(y) > 0 <==> y.compareTo(x) > 0); |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Model Method Summary |
Model methods inherited from interface org.jmlspecs.models.resolve.CompareTo |
isComparableTo |
Method Summary |
Methods inherited from interface org.jmlspecs.models.resolve.CompareTo |
compareTo |
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |