@Override public boolean equals(Object obj) { if (!(obj instanceof DegreeModuleScopeCurricularCourseScope)) { return false; } return curricularCourseScope.equals( ((DegreeModuleScopeCurricularCourseScope) obj).getCurricularCourseScope()); }