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