containsPartially method

bool containsPartially(
  1. Period other
)

Returns true if this contains partially other.

Implementation

bool containsPartially(Period other) {
  return overlapsWith(other) && !containsFully(other);
}