SimpleLength implements Length { @Override public int hashCode() { return Double.valueOf(this.value).hashCode() * 31 + this.unit.hashCode(); } SimpleLength(final double value, final Unit unit); static SimpleLength mm(final double value); static SimpleLength cm(final double value); static SimpleLength in(final double value); static SimpleLength pt(final double value); static SimpleLength pc(final double value); static SimpleLength em(final double value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override String getValue(); @Override boolean isNotNull();  }
@Test public void testHashCode() { Assert.assertEquals(SimpleLength.pc(VALUE).hashCode(), SimpleLength.pc(VALUE).hashCode()); }