Beispiel #1
0
 public boolean contains(int abstractStudentNumber, final ExecutionDegree executionDegree) {
   for (final ShiftDistributionEntry distributionEntry :
       executionDegree.getShiftDistributionEntriesSet()) {
     if (distributionEntry.getAbstractStudentNumber().intValue() == abstractStudentNumber) {
       return true;
     }
   }
   return false;
 }
Beispiel #2
0
 public List<ShiftDistributionEntry> getEntriesByStudentNumber(Integer studentNumber) {
   final List<ShiftDistributionEntry> result = new ArrayList<ShiftDistributionEntry>();
   for (final ShiftDistributionEntry shiftDistributionEntry : getShiftDistributionEntriesSet()) {
     if (shiftDistributionEntry.getAbstractStudentNumber().equals(studentNumber)) {
       result.add(shiftDistributionEntry);
     }
   }
   return result;
 }