Beispiel #1
0
        public override int GetHashCode()
        {
            const int prime  = 31;
            int       result = base.GetHashCode();

            result = prime * result + ((Analyzer == null) ? 0 : Analyzer.GetHashCode());
            result = prime * result + ((fieldName == null) ? 0 : fieldName.GetHashCode());
            result = prime * result + ((LikeText == null) ? 0 : LikeText.GetHashCode());
            result = prime * result + MaxQueryTerms;
            result = prime * result + MinDocFreq;
            result = prime * result + MinTermFrequency;
            result = prime * result + Arrays.GetHashCode(MoreLikeFields);
            result = prime * result + Number.FloatToIntBits(PercentTermsToMatch);
            result = prime * result + ((StopWords == null) ? 0 : StopWords.GetHashCode());
            return(result);
        }