public boolean equals()

in android/src/main/java/com/facebook/spectrum/Configuration.java [392:432]


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

    Configuration that = (Configuration) o;

    if (defaultBackgroundColor != null
        ? !defaultBackgroundColor.equals(that.defaultBackgroundColor)
        : that.defaultBackgroundColor != null) return false;
    if (interpretMetadata != null
        ? !interpretMetadata.equals(that.interpretMetadata)
        : that.interpretMetadata != null) return false;
    if (samplingMethod != that.samplingMethod) return false;
    if (chromaSamplingModeOverride != that.chromaSamplingModeOverride) return false;
    if (propagateChromaSamplingModeFromSource != null
        ? !propagateChromaSamplingModeFromSource.equals(that.propagateChromaSamplingModeFromSource)
        : that.propagateChromaSamplingModeFromSource != null) return false;
    if (useTrellis != null ? !useTrellis.equals(that.useTrellis) : that.useTrellis != null)
      return false;
    if (useProgressive != null
        ? !useProgressive.equals(that.useProgressive)
        : that.useProgressive != null) return false;
    if (useOptimizeScan != null
        ? !useOptimizeScan.equals(that.useOptimizeScan)
        : that.useOptimizeScan != null) return false;
    if (useCompatibleDcScanOpt != null
        ? !useCompatibleDcScanOpt.equals(that.useCompatibleDcScanOpt)
        : that.useCompatibleDcScanOpt != null) return false;
    if (usePsnrQuantTable != null
        ? !usePsnrQuantTable.equals(that.usePsnrQuantTable)
        : that.usePsnrQuantTable != null) return false;
    if (useInterlacing != null
        ? !useInterlacing.equals(that.useInterlacing)
        : that.useInterlacing != null) return false;
    if (compressionLevel != null
        ? !compressionLevel.equals(that.compressionLevel)
        : that.compressionLevel != null) return false;
    if (webpMethod != null ? !webpMethod.equals(that.webpMethod) : that.webpMethod != null)
      return false;
    return webpImageHint == that.webpImageHint;
  }