Sorry, I’m not sure what behavior you expect here. equals() for a data class uses equals() for its components. I’m not sure how the fact that another interface exists and its javadoc says that it should be consistent with equals() is relevant.
Sorry, I’m not sure what behavior you expect here. equals() for a data class uses equals() for its components. I’m not sure how the fact that another interface exists and its javadoc says that it should be consistent with equals() is relevant.