Beispiel #1
0
 public Attendance getAttendanceByMember(Member member) {
   Attendance returnAttendance = null;
   for (Attendance attendance : getAttendances()) {
     if (attendance.getMember().equals(member)) {
       returnAttendance = attendance;
     }
   }
   return returnAttendance;
 }
Beispiel #2
0
 public int compare(Attendance a1, Attendance a2) {
   return a1.getMember().getName().compareTo(a2.getMember().getName());
 }
Beispiel #3
0
 public int getAttendedCount() {
   int result = 0;
   for (Attendance attendance : getAttendances()) if (attendance.isAttended() == true) result++;
   return result;
 }