ComparableAndComparator
Class should not implement both `Comparable` and `Comparator`

Severity
WARNING

The problem

A Comparator is an object that knows how to compare other objects, whereas an object implementing Comparable knows how to compare itself to other objects of the same type.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("ComparableAndComparator") to the enclosing element.