Code example for Set

Methods: hashCode

0
        result = 31 * result + minDocFreq;
        result = 31 * result + minTermFrequency;
        result = 31 * result + minWordLen;
        result = 31 * result + Arrays.hashCode(moreLikeFields);
        result = 31 * result + minimumShouldMatch.hashCode();
        result = 31 * result + (stopWords == null ? 0 : stopWords.hashCode());
        result = 31 * result + Float.floatToIntBits(getBoost());
        return result;
    } 
 
    @Override 
    public boolean equals(Object obj) { 
        if (obj == null || getClass() != obj.getClass())
            return false; 
        MoreLikeThisQuery other = (MoreLikeThisQuery) obj;
        if (getBoost() != other.getBoost())
            return false; 
        if (!analyzer.equals(other.analyzer))
            return false; 
        if (boostTerms != other.boostTerms)
Contextual code suggestions in your IDE  Get Codota for Java