Ejemplo n.º 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);
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 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());
 }