@Override
  public int hashCode() {
    int result = minDecodeIntervalMs;
    result = 31 * result + maxDimensionPx;
    result = 31 * result + (decodePreviewFrame ? 1 : 0);
    result = 31 * result + (useLastFrameForPreview ? 1 : 0);
    result = 31 * result + (useEncodedImageForPreview ? 1 : 0);
    result = 31 * result + (decodeAllFrames ? 1 : 0);
    result = 31 * result + (forceStaticImage ? 1 : 0);
    if (!excludeBitmapConfigFromComparison) result = 31 * result + bitmapConfig.ordinal();
    if (!excludeBitmapConfigFromComparison)
      result = 31 * result + (animatedBitmapConfig != null ? animatedBitmapConfig.ordinal() : 0);
    result = 31 * result + (customImageDecoder != null ? customImageDecoder.hashCode() : 0);
    result = 31 * result + (bitmapTransformation != null ? bitmapTransformation.hashCode() : 0);
    result = 31 * result + (colorSpace != null ? colorSpace.hashCode() : 0);
    return result;
  }
Creates a new builder.

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