properlyContains method

bool properlyContains(
  1. Interval other
)

Implementation

bool properlyContains(Interval other) {
  return other.a >= a && other.b <= b;
}