public Attendance getAttendanceByMember(Member member) { Attendance returnAttendance = null; for (Attendance attendance : getAttendances()) { if (attendance.getMember().equals(member)) { returnAttendance = attendance; } } return returnAttendance; }
public int compare(Attendance a1, Attendance a2) { return a1.getMember().getName().compareTo(a2.getMember().getName()); }