TextValue implements CellValue { @Override public final int hashCode() { return this.text.hashCode(); } TextValue(final Text text); @Override boolean equals(final Object o); @Override final int hashCode(); @Override void setToCell(final TableCell tableCell);  }
@Test public void testHashCode() { final Text text1 = Text.builder().parContent("text").link("url", "#url") .parStyledContent("text2", null).span("span").build(); final Text text2 = Text.builder().par().styledSpan("text", null).link("url", "#url").par() .span("text2").span("span").build(); Assert.assertEquals(-633306896, new TextValue(text1).hashCode()); Assert.assertEquals(-633306896, new TextValue(text2).hashCode()); }