@Test public void hashCode_shouldBeEqualToHashCodeOfRowNum() { int rowNum = 1337; ReadOnlyRowId rid = new ReadOnlyRowId(rowNum); Assert.assertEquals(Integer.valueOf(rowNum).hashCode(), rid.hashCode()); }
@Override public int hashCode() { return getRowNum(); }
ReadOnlyRowId extends RowId { @Override public int hashCode() { return getRowNum(); } }
ReadOnlyRowId extends RowId { @Override public int hashCode() { return getRowNum(); } ReadOnlyRowId(int rowNum); }
ReadOnlyRowId extends RowId { @Override public int hashCode() { return getRowNum(); } ReadOnlyRowId(int rowNum); @Override int hashCode(); @Override boolean equals(Object obj); int getRowNum(); @Override String toString(); }
ReadOnlyRowId extends RowId { @Override public int hashCode() { return getRowNum(); } ReadOnlyRowId(int rowNum); @Override int hashCode(); @Override boolean equals(Object obj); int getRowNum(); @Override String toString();  }