@Test public void testHashCode() { Schema schema1 = Schema.defaultSchema(); schema1.index("foo"); Schema schema2 = Schema.defaultSchema(); schema2.index("foo"); assertEquals(schema1.hashCode(), schema2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.indexes) .toHashCode(); }
Schema { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.indexes) .toHashCode(); } }
Schema { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.indexes) .toHashCode(); } private  Schema(); }
Schema { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.indexes) .toHashCode(); } private  Schema(); static Schema defaultSchema(); Index index(String name); Index index(String name, IndexOptions options); Index index(String name, IndexOptions options, long shardWidth); Index index(String name, Map<String, Object> options); Index index(Index other); boolean hasIndex(String indexName); Schema diff(Schema other); Map<String, Index> getIndexes(); @Override boolean equals(Object obj); @Override int hashCode(); }
Schema { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.indexes) .toHashCode(); } private  Schema(); static Schema defaultSchema(); Index index(String name); Index index(String name, IndexOptions options); Index index(String name, IndexOptions options, long shardWidth); Index index(String name, Map<String, Object> options); Index index(Index other); boolean hasIndex(String indexName); Schema diff(Schema other); Map<String, Index> getIndexes(); @Override boolean equals(Object obj); @Override int hashCode();  }