efficient and clean way to do equals with Java 8

efficient and clean way to do equals with Java 8