Link implements ParagraphElement { @Override public final int hashCode() { return 31 * this.href.hashCode() + this.text.hashCode(); } Link(final String text, final TextStyle ts, final String href); static LinkBuilder builder(final String text); @Deprecated static Link create(final String text, final TextStyle ts, final Table table); @Deprecated static Link create(final String text, final Table table); @Deprecated static Link create(final String text, final TextStyle ts, final String relativeRef); @Deprecated static Link create(final String text, final String relativeRef); @Deprecated static Link create(final String text, final TextStyle ts, final File file); @Deprecated static Link create(final String text, final File file); @Deprecated static Link create(final String text, final TextStyle ts, final URL url); @Deprecated static Link create(final String text, final URL url); @Deprecated static Link create(final String text, final TextStyle ts, final URI uri); @Deprecated static Link create(final String text, final TableRef tableRef); @Deprecated static Link create(final String text, final TextStyle ts, final TableRef tableRef); @Deprecated static Link create(final String text, final URI uri); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override void addEmbeddedStylesFromFooterHeader(final StylesContainer stylesContainer); @Override void addEmbeddedStylesFromCell(final StylesContainer stylesContainer); @Override boolean equals(final Object o); @Override final int hashCode();  }
@Test public void testHashCode() { final Link link = Link.builder("ok").to("ref1").build(); Assert.assertEquals(108393374, link.hashCode()); }