final ExecutionCourse executionCourse, final ShiftType shiftType) {
return CollectionUtils.exists(enroledShifts, new Predicate() {
@Override
final public boolean evaluate(Object object) {
Shift enroledShift = (Shift) object;
return enroledShift.getExecutionCourse() == executionCourse && enroledShift.containsType(shiftType);
}
});
}