Blog Archives

Confusing Comparable- & Comparator-Contract

Read here more about the Confusing Comparable- & Comparator-Contract in Java today. I recently came accross the following exception, thrown by the Java Runtime Environment: “Comparison method violates its general contract!” The Exception occurred in a Comparable-implementation looking similar as

Posted in Software, Software Architecture, Uncategorized