@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; //noinspection QuestionableName EducationalBackground that = (EducationalBackground) o; return (degree != null ? degree.equals(that.degree) : that.degree == null) && (primarySchool != null ? primarySchool.equals(that.primarySchool) : that.primarySchool == null) && (schools != null ? schools.equals(that.schools) : that.schools == null) && (qualifications != null ? qualifications.equals(that.qualifications) : that.qualifications == null); }