All Questions
1 question
6
votes
4
answers
1k
views
Legitimate cases of having .equals() behaving inconsistently with .compareTo()?
Java documentation says it's "strongly recommended" to have them behaving consistently.
But are there legitimate cases of java/c#/python/etc Object.equals() method behaving inconsistently with the ...