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