コード例 #1
0
 @Override
 public boolean checkShiftType(Grouping grouping, Shift shift) {
   if (shift != null) {
     return shift.containsType(grouping.getShiftType());
   } else {
     return grouping.getShiftType() == null;
   }
 }
コード例 #2
0
 @Override
 public List checkShiftsType(Grouping grouping, List shifts) {
   List result = new ArrayList();
   if (grouping.getShiftType() != null) {
     for (final Shift shift : (List<Shift>) shifts) {
       if (shift.containsType(grouping.getShiftType())) {
         result.add(shift);
       }
     }
   }
   return result;
 }
コード例 #3
0
 @Override
 public boolean checkHasShift(Grouping grouping) {
   return grouping.getShiftType() != null;
 }