@Test public void testHashCode() { MetaDataRow metaDataRow1 = new MetaDataRow("att1", "val1"); MetaDataRow metaDataRow2 = new MetaDataRow("att1", "val1"); assertNotEquals(metaDataRow1.hashCode(), metaDataRow2.hashCode()); metaDataRow1.setId(1L); metaDataRow2.setId(1L); assertEquals(metaDataRow1.hashCode(), metaDataRow2.hashCode()); }
@Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(id), Objects.hashCode(attribute), Objects.hashCode(value)); }
MetaDataRow { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(id), Objects.hashCode(attribute), Objects.hashCode(value)); } }
MetaDataRow { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(id), Objects.hashCode(attribute), Objects.hashCode(value)); } MetaDataRow();  MetaDataRow(final String attribute,
                       final String value);  MetaDataRow(final MetaDataAttribute metaData); }
MetaDataRow { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(id), Objects.hashCode(attribute), Objects.hashCode(value)); } MetaDataRow();  MetaDataRow(final String attribute,
                       final String value);  MetaDataRow(final MetaDataAttribute metaData); long getId(); void setId(final long id); String getAttribute(); void setAttribute(final String attribute); String getValue(); void setValue(final String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
MetaDataRow { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(id), Objects.hashCode(attribute), Objects.hashCode(value)); } MetaDataRow();  MetaDataRow(final String attribute,
                       final String value);  MetaDataRow(final MetaDataAttribute metaData); long getId(); void setId(final long id); String getAttribute(); void setAttribute(final String attribute); String getValue(); void setValue(final String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }