SetPagesTransitionParameters extends SinglePdfSourceSingleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SetPagesTransitionParameters)) { return false; } SetPagesTransitionParameters parameter = (SetPagesTransitionParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(transitions, parameter.getTransitions()) .append(defaultTransition, parameter.getDefaultTransition()) .append(fullScreen, parameter.isFullScreen()).isEquals(); } SetPagesTransitionParameters();  SetPagesTransitionParameters(PdfPageTransition defaultTransition); boolean isFullScreen(); void setFullScreen(boolean fullScreen); PdfPageTransition putTransition(Integer page, PdfPageTransition transition); void clearTransitions(); Map<Integer, PdfPageTransition> getTransitions(); PdfPageTransition getDefaultTransition(); PdfPageTransition getOrDefault(int page); @Override int hashCode(); @Override boolean equals(Object other);  }
@Test public void testEquals() { SetPagesTransitionParameters victim1 = new SetPagesTransitionParameters(); SetPagesTransitionParameters victim2 = new SetPagesTransitionParameters(); SetPagesTransitionParameters victim3 = new SetPagesTransitionParameters(); SetPagesTransitionParameters victim4 = new SetPagesTransitionParameters(PdfPageTransition.newInstance( PdfPageTransitionStyle.DISSOLVE, 1, 5)); TestUtils.testEqualsAndHashCodes(victim1, victim2, victim3, victim4); }