@Test public void hashCodeSameForDifferentObjectWithSameData() { final Set<String> presentTerms2 = new HashSet<>(); presentTerms2.add(P_TERM_1); presentTerms2.add(P_TERM_2); presentTerms2.add(P_TERM_3); presentTerms2.add(P_TERM_4); final Set<String> absentTerms2 = new HashSet<>(); absentTerms2.add(A_TERM_5); absentTerms2.add(A_TERM_6); final Set<String> rejectedGenes2 = new HashSet<>(); rejectedGenes2.add(G_TERM_1); rejectedGenes2.add(G_TERM_2); rejectedGenes2.add(G_TERM_3); final PanelData panelData2 = new PanelData(presentTerms2, absentTerms2, rejectedGenes2); Assert.assertEquals(this.panelData.hashCode(), panelData2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(this.presentTerms) .append(this.absentTerms) .append(this.rejectedGenes) .append(this.withMatchCount) .toHashCode(); }
PanelData { @Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(this.presentTerms) .append(this.absentTerms) .append(this.rejectedGenes) .append(this.withMatchCount) .toHashCode(); } }
PanelData { @Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(this.presentTerms) .append(this.absentTerms) .append(this.rejectedGenes) .append(this.withMatchCount) .toHashCode(); } PanelData(
        @Nonnull final Set<String> presentTerms,
        @Nonnull final Set<String> absentTerms,
        @Nonnull final Set<String> rejectedGenes);   PanelData(
        @Nonnull final Set<String> presentTerms,
        @Nonnull final Set<String> absentTerms,
        @Nonnull final Set<String> rejectedGenes,
        final boolean withMatchCount); }
PanelData { @Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(this.presentTerms) .append(this.absentTerms) .append(this.rejectedGenes) .append(this.withMatchCount) .toHashCode(); } PanelData(
        @Nonnull final Set<String> presentTerms,
        @Nonnull final Set<String> absentTerms,
        @Nonnull final Set<String> rejectedGenes);   PanelData(
        @Nonnull final Set<String> presentTerms,
        @Nonnull final Set<String> absentTerms,
        @Nonnull final Set<String> rejectedGenes,
        final boolean withMatchCount); @Override boolean equals(final Object o); @Override int hashCode(); }
PanelData { @Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(this.presentTerms) .append(this.absentTerms) .append(this.rejectedGenes) .append(this.withMatchCount) .toHashCode(); } PanelData(
        @Nonnull final Set<String> presentTerms,
        @Nonnull final Set<String> absentTerms,
        @Nonnull final Set<String> rejectedGenes);   PanelData(
        @Nonnull final Set<String> presentTerms,
        @Nonnull final Set<String> absentTerms,
        @Nonnull final Set<String> rejectedGenes,
        final boolean withMatchCount); @Override boolean equals(final Object o); @Override int hashCode();  }