@Test public void testHashCode() { String value = "test value"; BaseStringProperty p1 = new BaseStringProperty(); BaseStringProperty p2 = new BaseStringProperty(); p1.setValue(value); p2.setValue(value); assertEquals(p1.hashCode(), p2.hashCode()); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.appendSuper(super.hashCode()); builder.append(getValue()); return builder.toHashCode(); }
BaseStringProperty extends BaseProperty { @Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.appendSuper(super.hashCode()); builder.append(getValue()); return builder.toHashCode(); } }
BaseStringProperty extends BaseProperty { @Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.appendSuper(super.hashCode()); builder.append(getValue()); return builder.toHashCode(); }  }
BaseStringProperty extends BaseProperty { @Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.appendSuper(super.hashCode()); builder.append(getValue()); return builder.toHashCode(); }  @Override String getValue(); @Override void setValue(Object value); @Override String toText(); @Override boolean equals(Object obj); @Override int hashCode(); @Override BaseStringProperty clone(); }
BaseStringProperty extends BaseProperty { @Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.appendSuper(super.hashCode()); builder.append(getValue()); return builder.toHashCode(); }  @Override String getValue(); @Override void setValue(Object value); @Override String toText(); @Override boolean equals(Object obj); @Override int hashCode(); @Override BaseStringProperty clone();  }