Beispiel #1
0
 /// <summary>Returns a hash code value for this object. </summary>
 public override int GetHashCode()
 {
     // TODO in Java 1.5: switch to Arrays.hashCode().  The
     // Java 1.4 workaround below calculates the same hashCode
     // as Java 1.5's new Arrays.hashCode()
     return(0x45aaf665 + EquatableList <SortField> .GetHashCode(fields));
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int h = clauses.GetHashCode();

            h ^= ((h << 10) | (Number.URShift(h, 23)));
            h ^= System.Convert.ToInt32(Boost);
            return(h);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int prime  = 31;
            int result = 1;

            result = prime * result + ((analyzer == null) ? 0 : analyzer.GetHashCode());
            result = prime * result
                     + ((fieldVals == null) ? 0 : fieldVals.GetHashCode());
            result = prime * result + (ignoreTF ? 1231 : 1237);
            result = prime * result + maxNumTerms;
            return(result);
        }
Beispiel #4
0
 /// <summary>
 /// Compute a hash code for hashing us </summary>
 /// <returns> the hash code </returns>
 public override int GetHashCode()
 {
     return(Number.SingleToInt32Bits(Boost)
            + Number.SingleToInt32Bits(tieBreakerMultiplier)
            + disjuncts.GetHashCode());
 }
Beispiel #5
0
 /// <summary>Returns a hash code value for this object.</summary>
 public override int GetHashCode()
 {
     return(BitConverter.ToInt32(BitConverter.GetBytes(Boost), 0) ^ clauses.GetHashCode() + MinimumNumberShouldMatch + (disableCoord ? 17 : 0));
 }
Beispiel #6
0
 /// <summary>
 /// Returns a hash code value for this object. </summary>
 public override int GetHashCode()
 {
     return(Number.SingleToInt32Bits(Boost) ^ clauses.GetHashCode()
            + MinimumNumberShouldMatch + (disableCoord ? 17 : 0));
 }
Beispiel #7
0
 /// <summary>Returns a hash code value for this object.</summary>
 public override int GetHashCode()
 {
     return(BitConverter.ToInt32(BitConverter.GetBytes(Boost), 0) ^ slop ^ terms.GetHashCode() ^ positions.GetHashCode());
 }
Beispiel #8
0
 /// <summary>Compute a hash code for hashing us</summary>
 /// <returns> the hash code
 /// </returns>
 public override int GetHashCode()
 {
     return(BitConverter.ToInt32(BitConverter.GetBytes(Boost), 0) + BitConverter.ToInt32(BitConverter.GetBytes(tieBreakerMultiplier), 0) + disjuncts.GetHashCode());
 }
Beispiel #9
0
 /// <summary>
 /// Compute a hash code for hashing us </summary>
 /// <returns> the hash code </returns>
 public override int GetHashCode()
 {
     return(J2N.BitConversion.SingleToInt32Bits(Boost)
            + J2N.BitConversion.SingleToInt32Bits(tieBreakerMultiplier)
            + disjuncts.GetHashCode());
 }