public boolean equals(ATNConfig other) {if (this == other) {return true;}else if (other == null) {return false;}return this.state.stateNumber==other.state.stateNumber&& this.alt==other.alt&& (this.context==other.context || (this.context != null && this.context.equals(other.context)))&& this.semanticContext.equals(other.semanticContext)&& this.isPrecedenceFilterSuppressed() == other.isPrecedenceFilterSuppressed();}

public virtual bool Equals(ATNConfig other){if (this == other){return true;}else if (other == null){return false;}return this.state.stateNumber == other.state.stateNumber&& this.alt == other.alt&& (this.context == other.context || (this.context != null && this.context.Equals(other.context)))&& this.semanticContext.Equals(other.semanticContext)&& this.IsPrecedenceFilterSuppressed == other.IsPrecedenceFilterSuppressed;}
