public override bool Equals(System.Object obj) { if (this == obj) { return(true); } if (!base.Equals(obj)) { return(false); } if (GetType() != obj.GetType()) { return(false); } SpanTermQuery other = (SpanTermQuery)obj; if (term == null) { if (other.term != null) { return(false); } } else if (!term.Equals(other.term)) { return(false); } return(true); }
//@Override public override bool Equals(System.Object obj) { if (this == obj) { return(true); } if (!base.Equals(obj)) { return(false); } if (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); }
public override bool Equals(System.Object obj) { if (this == obj) { return(true); } if (!base.Equals(obj)) { return(false); } if (GetType() != obj.GetType()) { return(false); } FuzzyQuery other = (FuzzyQuery)obj; if (BitConverter.ToInt32(BitConverter.GetBytes(minimumSimilarity), 0) != BitConverter.ToInt32(BitConverter.GetBytes(other.minimumSimilarity), 0)) { return(false); } if (prefixLength != other.prefixLength) { return(false); } if (term == null) { if (other.term != null) { return(false); } } else if (!term.Equals(other.term)) { return(false); } return(true); }