for (AdmissionPart leftAdmissionPart : admissionPartList) {
for (AdmissionPart rightAdmissionPart : admissionPartList) {
if (leftAdmissionPart.getId() < rightAdmissionPart.getId()) {
int sameNightCount = leftAdmissionPart.calculateSameNightCount(rightAdmissionPart);
if (sameNightCount > 0) {
admissionPartConflictList.add(new AdmissionPartConflict(
leftAdmissionPart, rightAdmissionPart, sameNightCount));
}
}
}
}