예제 #1
0
        public override int GetHashCode()
        {
            int h = clauses.GetHashCode();

            h ^= ((h << 10) | (SupportClass.Number.URShift(h, 23)));
            h ^= System.Convert.ToInt32(GetBoost());
            return(h);
        }
예제 #2
0
 /// <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));
 }
예제 #3
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());
 }
예제 #4
0
 /// <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());
 }