예제 #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;
 }