doesNotOverlapWith method
- Period other
Returns true
if this does not overlap with other
.
Implementation
bool doesNotOverlapWith(Period other) {
return (!contains(other.start) && !contains(other.end)) &&
(!other.contains(start) && !other.contains(end));
}