@Test public void testEquals() { SetPagesLabelParameters victim1 = new SetPagesLabelParameters(); SetPagesLabelParameters victim2 = new SetPagesLabelParameters(); SetPagesLabelParameters victim3 = new SetPagesLabelParameters(); SetPagesLabelParameters victim4 = new SetPagesLabelParameters(); PdfPageLabel label = PdfPageLabel.newInstanceWithLabel("label", PdfLabelNumberingStyle.ARABIC, 2); PdfPageLabel diffLabel = PdfPageLabel.newInstanceWithoutLabel(PdfLabelNumberingStyle.ARABIC, 2); victim1.putLabel(1, label); victim2.putLabel(1, label); victim3.putLabel(1, label); victim4.putLabel(1, diffLabel); TestUtils.testEqualsAndHashCodes(victim1, victim2, victim3, victim4); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SetPagesLabelParameters)) { return false; } SetPagesLabelParameters parameter = (SetPagesLabelParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(getLabels(), parameter.getLabels()) .isEquals(); }
SetPagesLabelParameters extends SinglePdfSourceSingleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SetPagesLabelParameters)) { return false; } SetPagesLabelParameters parameter = (SetPagesLabelParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(getLabels(), parameter.getLabels()) .isEquals(); } }
SetPagesLabelParameters extends SinglePdfSourceSingleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SetPagesLabelParameters)) { return false; } SetPagesLabelParameters parameter = (SetPagesLabelParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(getLabels(), parameter.getLabels()) .isEquals(); }  }
SetPagesLabelParameters extends SinglePdfSourceSingleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SetPagesLabelParameters)) { return false; } SetPagesLabelParameters parameter = (SetPagesLabelParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(getLabels(), parameter.getLabels()) .isEquals(); }  PdfPageLabel putLabel(Integer page, PdfPageLabel label); Map<Integer, PdfPageLabel> getLabels(); @Override int hashCode(); @Override boolean equals(Object other); }
SetPagesLabelParameters extends SinglePdfSourceSingleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SetPagesLabelParameters)) { return false; } SetPagesLabelParameters parameter = (SetPagesLabelParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(getLabels(), parameter.getLabels()) .isEquals(); }  PdfPageLabel putLabel(Integer page, PdfPageLabel label); Map<Integer, PdfPageLabel> getLabels(); @Override int hashCode(); @Override boolean equals(Object other);  }