public override int GetHashCode() { int h = clauses.GetHashCode(); h ^= ((h << 10) | (SupportClass.Number.URShift(h, 23))); h ^= System.Convert.ToInt32(GetBoost()); return(h); }
/// <summary>Returns a hash code value for this object.</summary> public override int GetHashCode() { return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ clauses.GetHashCode() + GetMinimumNumberShouldMatch() + (disableCoord ? 17 : 0)); }
/// <summary>Compute a hash code for hashing us</summary> /// <returns> the hash code /// </returns> public override int GetHashCode() { return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) + BitConverter.ToInt32(BitConverter.GetBytes(tieBreakerMultiplier), 0) + disjuncts.GetHashCode()); }
/// <summary>Returns a hash code value for this object.</summary> public override int GetHashCode() { return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ slop ^ terms.GetHashCode() ^ positions.GetHashCode()); }