Class ImageMagickCompareResult


  • public final class ImageMagickCompareResult
    extends java.lang.Object
    A helper data class, which aggregates true/false result of ImageMagick comparing as well as the number of different pixels.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long diffPixels  
      private boolean result  
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageMagickCompareResult​(boolean result, long diffPixels)
      Creates an instance that contains ImageMagick comparing result information.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDiffPixels()
      Getter for a different pixels count.
      boolean isComparingResultSuccessful()
      Returns image compare boolean value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • result

        private final boolean result
      • diffPixels

        private final long diffPixels
    • Constructor Detail

      • ImageMagickCompareResult

        public ImageMagickCompareResult​(boolean result,
                                        long diffPixels)
        Creates an instance that contains ImageMagick comparing result information.
        Parameters:
        result - true, if the compared images are equal.
        diffPixels - number of different pixels.
    • Method Detail

      • isComparingResultSuccessful

        public boolean isComparingResultSuccessful()
        Returns image compare boolean value.
        Returns:
        true if the compared images are equal.
      • getDiffPixels

        public long getDiffPixels()
        Getter for a different pixels count.
        Returns:
        Returns a a different pixels count.