@Test public void testEquals() { PdfToMultipleTiffParameters eq1 = new PdfToMultipleTiffParameters(ImageColorType.GRAY_SCALE); PdfToMultipleTiffParameters eq2 = new PdfToMultipleTiffParameters(ImageColorType.GRAY_SCALE); PdfToMultipleTiffParameters eq3 = new PdfToMultipleTiffParameters(ImageColorType.GRAY_SCALE); PdfToMultipleTiffParameters diff = new PdfToMultipleTiffParameters(ImageColorType.BLACK_AND_WHITE); diff.setCompressionType(TiffCompressionType.JPEG_TTN2); TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff); }
@Override public boolean equals(Object other) { if (!(other instanceof PdfToMultipleTiffParameters)) { return false; } PdfToMultipleTiffParameters parameter = (PdfToMultipleTiffParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(compressionType, parameter.getCompressionType()).isEquals(); }
PdfToMultipleTiffParameters extends AbstractPdfToMultipleImageParameters implements PdfToTiffParameters { @Override public boolean equals(Object other) { if (!(other instanceof PdfToMultipleTiffParameters)) { return false; } PdfToMultipleTiffParameters parameter = (PdfToMultipleTiffParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(compressionType, parameter.getCompressionType()).isEquals(); } }
PdfToMultipleTiffParameters extends AbstractPdfToMultipleImageParameters implements PdfToTiffParameters { @Override public boolean equals(Object other) { if (!(other instanceof PdfToMultipleTiffParameters)) { return false; } PdfToMultipleTiffParameters parameter = (PdfToMultipleTiffParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(compressionType, parameter.getCompressionType()).isEquals(); } PdfToMultipleTiffParameters(ImageColorType outputImageColorType);  PdfToMultipleTiffParameters(ImageColorType outputImageColorType, TiffCompressionType compressionType); }
PdfToMultipleTiffParameters extends AbstractPdfToMultipleImageParameters implements PdfToTiffParameters { @Override public boolean equals(Object other) { if (!(other instanceof PdfToMultipleTiffParameters)) { return false; } PdfToMultipleTiffParameters parameter = (PdfToMultipleTiffParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(compressionType, parameter.getCompressionType()).isEquals(); } PdfToMultipleTiffParameters(ImageColorType outputImageColorType);  PdfToMultipleTiffParameters(ImageColorType outputImageColorType, TiffCompressionType compressionType); @Override ImageType getOutputImageType(); @Override TiffCompressionType getCompressionType(); void setCompressionType(TiffCompressionType compressionType); @Override int hashCode(); @Override boolean equals(Object other); }
PdfToMultipleTiffParameters extends AbstractPdfToMultipleImageParameters implements PdfToTiffParameters { @Override public boolean equals(Object other) { if (!(other instanceof PdfToMultipleTiffParameters)) { return false; } PdfToMultipleTiffParameters parameter = (PdfToMultipleTiffParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(compressionType, parameter.getCompressionType()).isEquals(); } PdfToMultipleTiffParameters(ImageColorType outputImageColorType);  PdfToMultipleTiffParameters(ImageColorType outputImageColorType, TiffCompressionType compressionType); @Override ImageType getOutputImageType(); @Override TiffCompressionType getCompressionType(); void setCompressionType(TiffCompressionType compressionType); @Override int hashCode(); @Override boolean equals(Object other);  }