public boolean equals(Object obj) {if ( obj==null || !(obj instanceof IntervalSet) ) {return false;}IntervalSet other = (IntervalSet)obj;return this.intervals.equals(other.intervals);}
public override bool Equals(object obj){if (obj == null || !(obj is Antlr4.Runtime.Misc.IntervalSet)){return false;}Antlr4.Runtime.Misc.IntervalSet other = (Antlr4.Runtime.Misc.IntervalSet)obj;return this.intervals.SequenceEqual(other.intervals);}