@Test public void test_hashCode_01() { QueryCondition c0 = new QueryCondition("foo", "=", "bar"); QueryCondition c1 = new QueryCondition("foo", EQUALS, "bar"); assertEquals("01", c0.hashCode(), c1.hashCode()); }
@Override public int hashCode() { int hash = 17; hash = (hash * 31) + Objects.hashCode(not); hash = (hash * 31) + Objects.hashCode(field); hash = (hash * 31) + Objects.hashCode(operator); hash = (hash * 31) + ApiUtil.deepHashCode(value); hash = (hash * 31) + ApiUtil.hashCode(and); hash = (hash * 31) + ApiUtil.hashCode(or); hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Float.hashCode(boost); return hash; }
QueryCondition { @Override public int hashCode() { int hash = 17; hash = (hash * 31) + Objects.hashCode(not); hash = (hash * 31) + Objects.hashCode(field); hash = (hash * 31) + Objects.hashCode(operator); hash = (hash * 31) + ApiUtil.deepHashCode(value); hash = (hash * 31) + ApiUtil.hashCode(and); hash = (hash * 31) + ApiUtil.hashCode(or); hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Float.hashCode(boost); return hash; } }
QueryCondition { @Override public int hashCode() { int hash = 17; hash = (hash * 31) + Objects.hashCode(not); hash = (hash * 31) + Objects.hashCode(field); hash = (hash * 31) + Objects.hashCode(operator); hash = (hash * 31) + ApiUtil.deepHashCode(value); hash = (hash * 31) + ApiUtil.hashCode(and); hash = (hash * 31) + ApiUtil.hashCode(or); hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Float.hashCode(boost); return hash; } QueryCondition();  QueryCondition(boolean b);  QueryCondition(QueryCondition other);  QueryCondition(String field, String operator, Object value);  QueryCondition(String field, ComparisonOperator operator, Object value);  QueryCondition(Path field, ComparisonOperator operator, Object value);  QueryCondition(UnaryBooleanOperator not, String field, ComparisonOperator operator,
			Object value);  QueryCondition(UnaryBooleanOperator not, Path field, ComparisonOperator operator,
			Object value); }
QueryCondition { @Override public int hashCode() { int hash = 17; hash = (hash * 31) + Objects.hashCode(not); hash = (hash * 31) + Objects.hashCode(field); hash = (hash * 31) + Objects.hashCode(operator); hash = (hash * 31) + ApiUtil.deepHashCode(value); hash = (hash * 31) + ApiUtil.hashCode(and); hash = (hash * 31) + ApiUtil.hashCode(or); hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Float.hashCode(boost); return hash; } QueryCondition();  QueryCondition(boolean b);  QueryCondition(QueryCondition other);  QueryCondition(String field, String operator, Object value);  QueryCondition(String field, ComparisonOperator operator, Object value);  QueryCondition(Path field, ComparisonOperator operator, Object value);  QueryCondition(UnaryBooleanOperator not, String field, ComparisonOperator operator,
			Object value);  QueryCondition(UnaryBooleanOperator not, Path field, ComparisonOperator operator,
			Object value); QueryCondition and(String field, String operator, Object value); QueryCondition and(String field, ComparisonOperator operator, Object value); QueryCondition and(QueryCondition sibling); QueryCondition or(String field, String operator, Object value); QueryCondition or(String field, ComparisonOperator operator, Object value); QueryCondition or(QueryCondition sibling); QueryCondition negate(); @JsonIgnore boolean isNegated(); UnaryBooleanOperator getNot(); void setNot(UnaryBooleanOperator not); Path getField(); void setField(Path field); ComparisonOperator getOperator(); void setOperator(ComparisonOperator operator); Object getValue(); void setValue(Object value); List<QueryCondition> getAnd(); void setAnd(List<QueryCondition> and); List<QueryCondition> getOr(); void setOr(List<QueryCondition> or); boolean isConstantScore(); void setConstantScore(boolean constantScore); float getBoost(); void setBoost(float boost); @Override boolean equals(Object obj); @Override int hashCode(); }
QueryCondition { @Override public int hashCode() { int hash = 17; hash = (hash * 31) + Objects.hashCode(not); hash = (hash * 31) + Objects.hashCode(field); hash = (hash * 31) + Objects.hashCode(operator); hash = (hash * 31) + ApiUtil.deepHashCode(value); hash = (hash * 31) + ApiUtil.hashCode(and); hash = (hash * 31) + ApiUtil.hashCode(or); hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Float.hashCode(boost); return hash; } QueryCondition();  QueryCondition(boolean b);  QueryCondition(QueryCondition other);  QueryCondition(String field, String operator, Object value);  QueryCondition(String field, ComparisonOperator operator, Object value);  QueryCondition(Path field, ComparisonOperator operator, Object value);  QueryCondition(UnaryBooleanOperator not, String field, ComparisonOperator operator,
			Object value);  QueryCondition(UnaryBooleanOperator not, Path field, ComparisonOperator operator,
			Object value); QueryCondition and(String field, String operator, Object value); QueryCondition and(String field, ComparisonOperator operator, Object value); QueryCondition and(QueryCondition sibling); QueryCondition or(String field, String operator, Object value); QueryCondition or(String field, ComparisonOperator operator, Object value); QueryCondition or(QueryCondition sibling); QueryCondition negate(); @JsonIgnore boolean isNegated(); UnaryBooleanOperator getNot(); void setNot(UnaryBooleanOperator not); Path getField(); void setField(Path field); ComparisonOperator getOperator(); void setOperator(ComparisonOperator operator); Object getValue(); void setValue(Object value); List<QueryCondition> getAnd(); void setAnd(List<QueryCondition> and); List<QueryCondition> getOr(); void setOr(List<QueryCondition> or); boolean isConstantScore(); void setConstantScore(boolean constantScore); float getBoost(); void setBoost(float boost); @Override boolean equals(Object obj); @Override int hashCode();  }