public override object Clone() { SpanNearPayloadCheckQuery result = new SpanNearPayloadCheckQuery((SpanNearQuery)m_match.Clone(), m_payloadToMatch); result.Boost = Boost; return(result); }
public override bool Equals(object o) { if (this == o) { return(true); } if (!(o is SpanNearPayloadCheckQuery)) { return(false); } SpanNearPayloadCheckQuery other = (SpanNearPayloadCheckQuery)o; // LUCENENET NOTE: Need to call Collections.Equals() to compare equality of all contained values return(Collections.Equals(this.m_payloadToMatch, other.m_payloadToMatch) && this.m_match.Equals(other.m_match) && this.Boost == other.Boost); }