@Test public void test_equals_02() { QueryCondition c0 = new QueryCondition(true); QueryCondition c1 = new QueryCondition(Boolean.TRUE); assertTrue("01", c0.equals(c1)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QueryCondition)) { return false; } QueryCondition other = (QueryCondition) obj; if (not != other.not) { return false; } if (!Objects.equals(field, other.field)) { return false; } if (!Objects.equals(operator, other.operator)) { return false; } if (!Objects.deepEquals(value, other.value)) { return false; } if (!ApiUtil.equals(and, other.and)) { return false; } if (!ApiUtil.equals(or, other.or)) { return false; } if (constantScore != other.constantScore) { return false; } if (boost != other.boost) { return false; } return true; }
QueryCondition { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QueryCondition)) { return false; } QueryCondition other = (QueryCondition) obj; if (not != other.not) { return false; } if (!Objects.equals(field, other.field)) { return false; } if (!Objects.equals(operator, other.operator)) { return false; } if (!Objects.deepEquals(value, other.value)) { return false; } if (!ApiUtil.equals(and, other.and)) { return false; } if (!ApiUtil.equals(or, other.or)) { return false; } if (constantScore != other.constantScore) { return false; } if (boost != other.boost) { return false; } return true; } }
QueryCondition { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QueryCondition)) { return false; } QueryCondition other = (QueryCondition) obj; if (not != other.not) { return false; } if (!Objects.equals(field, other.field)) { return false; } if (!Objects.equals(operator, other.operator)) { return false; } if (!Objects.deepEquals(value, other.value)) { return false; } if (!ApiUtil.equals(and, other.and)) { return false; } if (!ApiUtil.equals(or, other.or)) { return false; } if (constantScore != other.constantScore) { return false; } if (boost != other.boost) { return false; } return true; } 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 boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QueryCondition)) { return false; } QueryCondition other = (QueryCondition) obj; if (not != other.not) { return false; } if (!Objects.equals(field, other.field)) { return false; } if (!Objects.equals(operator, other.operator)) { return false; } if (!Objects.deepEquals(value, other.value)) { return false; } if (!ApiUtil.equals(and, other.and)) { return false; } if (!ApiUtil.equals(or, other.or)) { return false; } if (constantScore != other.constantScore) { return false; } if (boost != other.boost) { return false; } return true; } 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 boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QueryCondition)) { return false; } QueryCondition other = (QueryCondition) obj; if (not != other.not) { return false; } if (!Objects.equals(field, other.field)) { return false; } if (!Objects.equals(operator, other.operator)) { return false; } if (!Objects.deepEquals(value, other.value)) { return false; } if (!ApiUtil.equals(and, other.and)) { return false; } if (!ApiUtil.equals(or, other.or)) { return false; } if (constantScore != other.constantScore) { return false; } if (boost != other.boost) { return false; } return true; } 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();  }