@Test public void test_equals_01() { QuerySpec q0 = new QuerySpec(); QuerySpec q1 = new QuerySpec(); assertTrue("01", q0.equals(q1)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QuerySpec)) { return false; } QuerySpec other = (QuerySpec) obj; if (constantScore != other.constantScore) { return false; } if (!Objects.equals(fields, other.fields)) { return false; } if (!ApiUtil.equals(conditions, other.conditions)) { return false; } if (!ApiUtil.equals(logicalOperator, other.logicalOperator, AND)) { return false; } if (!ApiUtil.equals(sortFields, other.sortFields)) { return false; } if (!ApiUtil.equals(from, other.from, 0)) { return false; } if (!Objects.equals(size, other.size)) { return false; } return true; }
QuerySpec { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QuerySpec)) { return false; } QuerySpec other = (QuerySpec) obj; if (constantScore != other.constantScore) { return false; } if (!Objects.equals(fields, other.fields)) { return false; } if (!ApiUtil.equals(conditions, other.conditions)) { return false; } if (!ApiUtil.equals(logicalOperator, other.logicalOperator, AND)) { return false; } if (!ApiUtil.equals(sortFields, other.sortFields)) { return false; } if (!ApiUtil.equals(from, other.from, 0)) { return false; } if (!Objects.equals(size, other.size)) { return false; } return true; } }
QuerySpec { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QuerySpec)) { return false; } QuerySpec other = (QuerySpec) obj; if (constantScore != other.constantScore) { return false; } if (!Objects.equals(fields, other.fields)) { return false; } if (!ApiUtil.equals(conditions, other.conditions)) { return false; } if (!ApiUtil.equals(logicalOperator, other.logicalOperator, AND)) { return false; } if (!ApiUtil.equals(sortFields, other.sortFields)) { return false; } if (!ApiUtil.equals(from, other.from, 0)) { return false; } if (!Objects.equals(size, other.size)) { return false; } return true; } QuerySpec();  QuerySpec(QuerySpec other); }
QuerySpec { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QuerySpec)) { return false; } QuerySpec other = (QuerySpec) obj; if (constantScore != other.constantScore) { return false; } if (!Objects.equals(fields, other.fields)) { return false; } if (!ApiUtil.equals(conditions, other.conditions)) { return false; } if (!ApiUtil.equals(logicalOperator, other.logicalOperator, AND)) { return false; } if (!ApiUtil.equals(sortFields, other.sortFields)) { return false; } if (!ApiUtil.equals(from, other.from, 0)) { return false; } if (!Objects.equals(size, other.size)) { return false; } return true; } QuerySpec();  QuerySpec(QuerySpec other); boolean isConstantScore(); void setConstantScore(boolean constantScore); void addFields(String... fields); void addCondition(QueryCondition condition); void sortBy(String field); void sortBy(String field, SortOrder sortOrder); List<Path> getFields(); void setFields(List<Path> fields); LogicalOperator getLogicalOperator(); void setLogicalOperator(LogicalOperator operator); List<QueryCondition> getConditions(); void setConditions(List<QueryCondition> conditions); List<SortField> getSortFields(); void setSortFields(List<SortField> sortFields); Integer getFrom(); void setFrom(Integer from); Integer getSize(); void setSize(Integer size); @Override boolean equals(Object obj); @Override int hashCode(); }
QuerySpec { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof QuerySpec)) { return false; } QuerySpec other = (QuerySpec) obj; if (constantScore != other.constantScore) { return false; } if (!Objects.equals(fields, other.fields)) { return false; } if (!ApiUtil.equals(conditions, other.conditions)) { return false; } if (!ApiUtil.equals(logicalOperator, other.logicalOperator, AND)) { return false; } if (!ApiUtil.equals(sortFields, other.sortFields)) { return false; } if (!ApiUtil.equals(from, other.from, 0)) { return false; } if (!Objects.equals(size, other.size)) { return false; } return true; } QuerySpec();  QuerySpec(QuerySpec other); boolean isConstantScore(); void setConstantScore(boolean constantScore); void addFields(String... fields); void addCondition(QueryCondition condition); void sortBy(String field); void sortBy(String field, SortOrder sortOrder); List<Path> getFields(); void setFields(List<Path> fields); LogicalOperator getLogicalOperator(); void setLogicalOperator(LogicalOperator operator); List<QueryCondition> getConditions(); void setConditions(List<QueryCondition> conditions); List<SortField> getSortFields(); void setSortFields(List<SortField> sortFields); Integer getFrom(); void setFrom(Integer from); Integer getSize(); void setSize(Integer size); @Override boolean equals(Object obj); @Override int hashCode();  }