@Override
  public boolean equals(@Nullable Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    ImageDecodeOptions that = (ImageDecodeOptions) o;

    if (minDecodeIntervalMs != that.minDecodeIntervalMs) return false;
    if (maxDimensionPx != that.maxDimensionPx) return false;
    if (decodePreviewFrame != that.decodePreviewFrame) return false;
    if (useLastFrameForPreview != that.useLastFrameForPreview) return false;
    if (useEncodedImageForPreview != that.useEncodedImageForPreview) return false;
    if (decodeAllFrames != that.decodeAllFrames) return false;
    if (forceStaticImage != that.forceStaticImage) return false;
    if (!excludeBitmapConfigFromComparison && bitmapConfig != that.bitmapConfig) return false;
    if (!excludeBitmapConfigFromComparison && animatedBitmapConfig != that.animatedBitmapConfig)
      return false;
    if (customImageDecoder != that.customImageDecoder) return false;
    if (bitmapTransformation != that.bitmapTransformation) return false;
    if (colorSpace != that.colorSpace) return false;
    return true;
  }
Creates a new builder.

@return a new builder
imagepipeline-base/src/main/java/com/facebook/imagepipeline/common/ImageDecodeOptions.java