public boolean equals(Object obj) {if (this == obj)return true;if (!super.equals(obj))return false;if (getClass() != obj.getClass())return false;TermRangeQuery other = (TermRangeQuery) obj;if (includeLower != other.includeLower)return false;if (includeUpper != other.includeUpper)return false;if (lowerTerm == null) {if (other.lowerTerm != null)return false;} else if (!lowerTerm.equals(other.lowerTerm))return false;if (upperTerm == null) {if (other.upperTerm != null)return false;} else if (!upperTerm.equals(other.upperTerm))return false;return true;}

public override bool Equals(object obj){if (this == obj){return true;}if (!base.Equals(obj)){return false;}if (this.GetType() != obj.GetType()){return false;}TermRangeQuery other = (TermRangeQuery)obj;if (includeLower != other.includeLower){return false;}if (includeUpper != other.includeUpper){return false;}if (lowerTerm == null){if (other.lowerTerm != null){return false;}}else if (!lowerTerm.Equals(other.lowerTerm)){return false;}if (upperTerm == null){if (other.upperTerm != null){return false;}}else if (!upperTerm.Equals(other.upperTerm)){return false;}return true;}
