Ruminations on Development
Java equals(...) Question
So, I'm playing around with the idea of creating a utility to test adherence to the Java "Equals Contract", and I came across something that I find ambiguous in the JavaDoc of java.lang.Object.equals(...).
It has to do with transitivity. The JavaDoc
says this:
That's all well and good. But I'm trying to figure out the inverse of this rule.
Is it this?:
... Or is it this?:
... Or are those two logically equivalent?
Posted at 12:27AM Oct 24, 2007 by Nelson "Nelz" Carpentier in Java | Comments[0]