@Test public void testHashCode() { Index index1 = this.schema.index("foo"); Index index2 = Index.create("foo"); assertEquals(index1.hashCode(), index2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.name) .toHashCode(); }
Index { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.name) .toHashCode(); } }
Index { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.name) .toHashCode(); } Index(Index index); private  Index(String name, IndexOptions options); }
Index { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.name) .toHashCode(); } Index(Index index); private  Index(String name, IndexOptions options); static Index create(String name); static Index create(String name, IndexOptions options); String getName(); Field field(String name); Field field(String name, FieldOptions options); Field field(String name, Map<String, Object> options); Field field(Field other); boolean hasField(String fieldName); PqlBatchQuery batchQuery(); @SuppressWarnings("WeakerAccess") PqlBatchQuery batchQuery(int queryCount); PqlBatchQuery batchQuery(PqlQuery... queries); PqlBaseQuery rawQuery(String query); @SuppressWarnings("WeakerAccess") PqlRowQuery union(PqlRowQuery... rows); @SuppressWarnings("WeakerAccess") PqlRowQuery intersect(PqlRowQuery... rows); @SuppressWarnings("WeakerAccess") PqlRowQuery difference(PqlRowQuery... rows); PqlRowQuery xor(PqlRowQuery... rows); PqlRowQuery not(PqlRowQuery row); PqlBaseQuery count(PqlRowQuery row); PqlBaseQuery setColumnAttrs(long id, Map<String, Object> attributes); PqlBaseQuery setColumnAttrs(String key, Map<String, Object> attributes); PqlBaseQuery options(PqlRowQuery row, OptionsOptions opts); PqlBaseQuery groupBy(PqlRowsQuery... queries); PqlBaseQuery groupBy(Integer limit, PqlRowsQuery... queries); PqlBaseQuery groupBy(PqlRowQuery filterQuery, PqlRowsQuery... queries); PqlBaseQuery groupBy(Integer limit, PqlRowQuery filterQuery, PqlRowsQuery... queries); Map<String, Field> getFields(); IndexOptions getOptions(); long getShardWidth(); @Override boolean equals(Object obj); @Override int hashCode(); }
Index { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.name) .toHashCode(); } Index(Index index); private  Index(String name, IndexOptions options); static Index create(String name); static Index create(String name, IndexOptions options); String getName(); Field field(String name); Field field(String name, FieldOptions options); Field field(String name, Map<String, Object> options); Field field(Field other); boolean hasField(String fieldName); PqlBatchQuery batchQuery(); @SuppressWarnings("WeakerAccess") PqlBatchQuery batchQuery(int queryCount); PqlBatchQuery batchQuery(PqlQuery... queries); PqlBaseQuery rawQuery(String query); @SuppressWarnings("WeakerAccess") PqlRowQuery union(PqlRowQuery... rows); @SuppressWarnings("WeakerAccess") PqlRowQuery intersect(PqlRowQuery... rows); @SuppressWarnings("WeakerAccess") PqlRowQuery difference(PqlRowQuery... rows); PqlRowQuery xor(PqlRowQuery... rows); PqlRowQuery not(PqlRowQuery row); PqlBaseQuery count(PqlRowQuery row); PqlBaseQuery setColumnAttrs(long id, Map<String, Object> attributes); PqlBaseQuery setColumnAttrs(String key, Map<String, Object> attributes); PqlBaseQuery options(PqlRowQuery row, OptionsOptions opts); PqlBaseQuery groupBy(PqlRowsQuery... queries); PqlBaseQuery groupBy(Integer limit, PqlRowsQuery... queries); PqlBaseQuery groupBy(PqlRowQuery filterQuery, PqlRowsQuery... queries); PqlBaseQuery groupBy(Integer limit, PqlRowQuery filterQuery, PqlRowsQuery... queries); Map<String, Field> getFields(); IndexOptions getOptions(); long getShardWidth(); @Override boolean equals(Object obj); @Override int hashCode();  }