@Test public void test_hashCode_01() { QuerySpec q0 = new QuerySpec(); QuerySpec q1 = new QuerySpec(); assertEquals("01", q0.hashCode(), q1.hashCode()); }
@Override public int hashCode() { int hash = 17; hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Objects.hashCode(fields); hash = (hash * 31) + ApiUtil.hashCode(conditions); hash = (hash * 31) + ApiUtil.hashCode(logicalOperator, AND); hash = (hash * 31) + ApiUtil.hashCode(sortFields); hash = (hash * 31) + ApiUtil.hashCode(from, 0); hash = (hash * 31) + (size == null ? Integer.MIN_VALUE : size.hashCode()); return hash; }
QuerySpec { @Override public int hashCode() { int hash = 17; hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Objects.hashCode(fields); hash = (hash * 31) + ApiUtil.hashCode(conditions); hash = (hash * 31) + ApiUtil.hashCode(logicalOperator, AND); hash = (hash * 31) + ApiUtil.hashCode(sortFields); hash = (hash * 31) + ApiUtil.hashCode(from, 0); hash = (hash * 31) + (size == null ? Integer.MIN_VALUE : size.hashCode()); return hash; } }
QuerySpec { @Override public int hashCode() { int hash = 17; hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Objects.hashCode(fields); hash = (hash * 31) + ApiUtil.hashCode(conditions); hash = (hash * 31) + ApiUtil.hashCode(logicalOperator, AND); hash = (hash * 31) + ApiUtil.hashCode(sortFields); hash = (hash * 31) + ApiUtil.hashCode(from, 0); hash = (hash * 31) + (size == null ? Integer.MIN_VALUE : size.hashCode()); return hash; } QuerySpec();  QuerySpec(QuerySpec other); }
QuerySpec { @Override public int hashCode() { int hash = 17; hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Objects.hashCode(fields); hash = (hash * 31) + ApiUtil.hashCode(conditions); hash = (hash * 31) + ApiUtil.hashCode(logicalOperator, AND); hash = (hash * 31) + ApiUtil.hashCode(sortFields); hash = (hash * 31) + ApiUtil.hashCode(from, 0); hash = (hash * 31) + (size == null ? Integer.MIN_VALUE : size.hashCode()); return hash; } 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 int hashCode() { int hash = 17; hash = (hash * 31) + (constantScore ? 1 : 0); hash = (hash * 31) + Objects.hashCode(fields); hash = (hash * 31) + ApiUtil.hashCode(conditions); hash = (hash * 31) + ApiUtil.hashCode(logicalOperator, AND); hash = (hash * 31) + ApiUtil.hashCode(sortFields); hash = (hash * 31) + ApiUtil.hashCode(from, 0); hash = (hash * 31) + (size == null ? Integer.MIN_VALUE : size.hashCode()); return hash; } 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();  }