overlaps method

bool overlaps(
  1. SpanEntity other
)

Implementation

bool overlaps(SpanEntity other) {
  return (other.start < end && other.start >= start) ||
      (other.end <= end && other.end >= start);
}