Implements the operator ==.
@override bool operator ==(Object other) => other is Interval && _start == other._start && _end == other._end;