for (Enrolment enrolment : this.getEnrolments()) { if (enrolment.getCurricularCourse().equals(curricularCourse)) { results.add(enrolment);
for (Enrolment enrollment : this.getEnrolments()) { if (enrollment.getCurricularCourse().equals(curricularCourse)) { results.add(enrollment);
    public List<Enrolment> getEnrolments(final CurricularCourse curricularCourse) {        List<Enrolment> results = new ArrayList<Enrolment>();        for (Enrolment enrolment : this.getEnrolments()) {            if (enrolment.getCurricularCourse().equals(curricularCourse)) {                results.add(enrolment);            }        }        return results;    }