@Test public void testHashCode() { FieldRow f1 = FieldRow.create("f1", 42); FieldRow f2 = FieldRow.create("f1", 42); assertEquals(f1.hashCode(), f2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.fieldName) .append(this.rowID) .append(this.rowKey) .toHashCode(); }
FieldRow { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.fieldName) .append(this.rowID) .append(this.rowKey) .toHashCode(); } }
FieldRow { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.fieldName) .append(this.rowID) .append(this.rowKey) .toHashCode(); } private  FieldRow(String fieldName, long rowID, String rowKey); }
FieldRow { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.fieldName) .append(this.rowID) .append(this.rowKey) .toHashCode(); } private  FieldRow(String fieldName, long rowID, String rowKey); static FieldRow create(String fieldName, long rowID); static FieldRow create(String fieldName, String rowKey); String getFieldName(); long getRowID(); String getRowKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
FieldRow { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.fieldName) .append(this.rowID) .append(this.rowKey) .toHashCode(); } private  FieldRow(String fieldName, long rowID, String rowKey); static FieldRow create(String fieldName, long rowID); static FieldRow create(String fieldName, String rowKey); String getFieldName(); long getRowID(); String getRowKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }