@Test public void testEquals() { RotateParameters eq1 = new RotateParameters(Rotation.DEGREES_0, PredefinedSetOfPages.ALL_PAGES); RotateParameters eq2 = new RotateParameters(Rotation.DEGREES_0, PredefinedSetOfPages.ALL_PAGES); RotateParameters eq3 = new RotateParameters(Rotation.DEGREES_0, PredefinedSetOfPages.ALL_PAGES); RotateParameters diff = new RotateParameters(Rotation.DEGREES_0, PredefinedSetOfPages.ALL_PAGES); diff.setOutputPrefix("prefix"); TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof RotateParameters)) { return false; } RotateParameters parameter = (RotateParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(predefinedSetOfPages, parameter.predefinedSetOfPages) .append(pageSelection, parameter.pageSelection) .append(rotation, parameter.rotation) .append(pageSelectionPerSource, parameter.pageSelectionPerSource) .isEquals(); }
RotateParameters extends MultiplePdfSourceMultipleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof RotateParameters)) { return false; } RotateParameters parameter = (RotateParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(predefinedSetOfPages, parameter.predefinedSetOfPages) .append(pageSelection, parameter.pageSelection) .append(rotation, parameter.rotation) .append(pageSelectionPerSource, parameter.pageSelectionPerSource) .isEquals(); } }
RotateParameters extends MultiplePdfSourceMultipleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof RotateParameters)) { return false; } RotateParameters parameter = (RotateParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(predefinedSetOfPages, parameter.predefinedSetOfPages) .append(pageSelection, parameter.pageSelection) .append(rotation, parameter.rotation) .append(pageSelectionPerSource, parameter.pageSelectionPerSource) .isEquals(); } RotateParameters(Rotation rotation, PredefinedSetOfPages predefinedSetOfPages);  RotateParameters(Rotation rotation);  RotateParameters(); }
RotateParameters extends MultiplePdfSourceMultipleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof RotateParameters)) { return false; } RotateParameters parameter = (RotateParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(predefinedSetOfPages, parameter.predefinedSetOfPages) .append(pageSelection, parameter.pageSelection) .append(rotation, parameter.rotation) .append(pageSelectionPerSource, parameter.pageSelectionPerSource) .isEquals(); } RotateParameters(Rotation rotation, PredefinedSetOfPages predefinedSetOfPages);  RotateParameters(Rotation rotation);  RotateParameters(); @Deprecated Rotation getRotation(); Rotation getRotation(int page); Rotation getRotation(int sourceIndex, int page); void addPageRange(PageRange range); void addPageRange(PageRange range, Rotation rotation); void addAllPageRanges(Collection<PageRange> ranges); void addPageRangePerSource(int sourceIndex, PageRange range, Rotation rotation); PredefinedSetOfPages getPredefinedSetOfPages(); Map<PageRange, Rotation> getPageSelection(); @Override int hashCode(); @Override boolean equals(Object other); }
RotateParameters extends MultiplePdfSourceMultipleOutputParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof RotateParameters)) { return false; } RotateParameters parameter = (RotateParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(predefinedSetOfPages, parameter.predefinedSetOfPages) .append(pageSelection, parameter.pageSelection) .append(rotation, parameter.rotation) .append(pageSelectionPerSource, parameter.pageSelectionPerSource) .isEquals(); } RotateParameters(Rotation rotation, PredefinedSetOfPages predefinedSetOfPages);  RotateParameters(Rotation rotation);  RotateParameters(); @Deprecated Rotation getRotation(); Rotation getRotation(int page); Rotation getRotation(int sourceIndex, int page); void addPageRange(PageRange range); void addPageRange(PageRange range, Rotation rotation); void addAllPageRanges(Collection<PageRange> ranges); void addPageRangePerSource(int sourceIndex, PageRange range, Rotation rotation); PredefinedSetOfPages getPredefinedSetOfPages(); Map<PageRange, Rotation> getPageSelection(); @Override int hashCode(); @Override boolean equals(Object other);  }