I have an interface which I would like to be compa...
# announcements
j
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?
f
No, because Java does not allow it either.
j
Thanks