Correct Java version of Objects.equals in README