private void checkExtensionSpaceOccupationIntersection(YearMonthDay begin, YearMonthDay end, Extension extension) { checkEndDate(begin, end); for (ExtensionSpaceOccupation extensionSpaceOccupation : extension.getExtensionSpaceOccupations()) { if (!extensionSpaceOccupation.equals(this) && extensionSpaceOccupation.occupationsIntersection(begin, end)) { throw new DomainException("error.extensionSpaceOccupation.intersection"); } }
private void checkExtensionSpaceOccupationIntersection(YearMonthDay begin, YearMonthDay end, Extension extension) { checkEndDate(begin, end); for (ExtensionSpaceOccupation extensionSpaceOccupation : extension .getExtensionSpaceOccupations()) { if (!extensionSpaceOccupation.equals(this) && extensionSpaceOccupation.occupationsIntersection(begin, end) && extensionSpaceOccupation.getSpace().equals(getSpace())) { throw new DomainException("error.extensionSpaceOccupation.intersection"); } }
    private void checkExtensionSpaceOccupationIntersection(YearMonthDay begin, YearMonthDay end, Extension extension) {        checkEndDate(begin, end);	for (ExtensionSpaceOccupation extensionSpaceOccupation : extension.getExtensionSpaceOccupations()) {            if (!extensionSpaceOccupation.equals(this)                    && extensionSpaceOccupation.occupationsIntersection(begin, end)) {                throw new DomainException("error.extensionSpaceOccupation.intersection");            }        }    } 