@Test public void testHashCode() throws Exception { BaseMigdalorHeader badHeader = new BaseMigdalorHeader(""); Assert.assertEquals("1".hashCode(),basemigdalorHeader.hashCode()); Assert.assertEquals(0,badHeader.hashCode()); }
@Override public int hashCode() { return schemaRevision != null ? schemaRevision.hashCode() : 0; }
BaseMigdalorHeader implements MigdalorHeader<String> { @Override public int hashCode() { return schemaRevision != null ? schemaRevision.hashCode() : 0; } }
BaseMigdalorHeader implements MigdalorHeader<String> { @Override public int hashCode() { return schemaRevision != null ? schemaRevision.hashCode() : 0; } BaseMigdalorHeader(String schemaRevision); }
BaseMigdalorHeader implements MigdalorHeader<String> { @Override public int hashCode() { return schemaRevision != null ? schemaRevision.hashCode() : 0; } BaseMigdalorHeader(String schemaRevision); byte[] getSchemaVersion(); byte[] getRevisionLengthInBytes(); @Override String getSchemaRevision(); @Override boolean equals(Object o); @Override int hashCode(); }
BaseMigdalorHeader implements MigdalorHeader<String> { @Override public int hashCode() { return schemaRevision != null ? schemaRevision.hashCode() : 0; } BaseMigdalorHeader(String schemaRevision); byte[] getSchemaVersion(); byte[] getRevisionLengthInBytes(); @Override String getSchemaRevision(); @Override boolean equals(Object o); @Override int hashCode();  }