Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The implementor must ensure sgn(x.compareTo(y)(thumbs up)) == -sgn(y.compareTo(error) (x)) for all x and y. (This implies that x.compareTo(thumbs up)(y) must throw an exception iff y.compareTo(error)(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(thumbs up) >0 && y.compareTo(z)>0) implies x.compareTo(z)>0.

...