I have an interface which I would like to be comparable by equals but I cannot override the equals method in the interface because is a method of Any. But I can implement the compareTo method.
Is there a way to achieve the comparison for objects inheriting an interface?