public boolean equals(Object obj) {if (this == obj) {return true;}if (!super.equals(obj)) {return false;}PrefixQuery other = (PrefixQuery) obj;if (!term.equals(other.term)) {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;}PrefixQuery other = (PrefixQuery)obj;if (_prefix == null){if (other._prefix != null){return false;}}else if (!_prefix.Equals(other._prefix)){return false;}return true;}