@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GroupOfStudents other = (GroupOfStudents) obj;
        if (!Objects.equals(this.speciality, other.speciality)) {
            return false;
        }
        if (!Objects.equals(this.faculty, other.faculty)) {
            return false;
        }
        if (this.yearOfStudy != other.yearOfStudy) {
            return false;
        }
        return this.numberOfGroup == other.numberOfGroup;
    }