@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + Float.floatToIntBits(this.getBoost()); result = prime * result + q.hashCode(); result = prime * result + lowerBound; result = prime * result + upperBound; result = prime * result + levelConstraint; return result; }
@Override public int hashCode() { return Float.floatToIntBits(this.getBoost()) ^ clauses.hashCode() ^ root.hashCode(); // root and twig query should have the same constraints, // no need to integrate them into the hashcode }
@Override public int hashCode() { return Float.floatToIntBits(this.getBoost()) ^ nodeQuery.hashCode(); }
/** Returns a hash code value for this object. */ @Override public int hashCode() { return query.hashCode() ^ (Occur.MUST.equals(occur) ? 1 : 0) ^ (Occur.MUST_NOT.equals(occur) ? 2 : 0); }