package coil.request;

import android.graphics.drawable.Drawable;
import coil.decode.DataSource;
import coil.memory.MemoryCache;
import com.google.android.recaptcha.internal.a;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes.dex */
public final class SuccessResult extends ImageResult {
    private final DataSource dataSource;
    private final String diskCacheKey;
    private final Drawable drawable;
    private final boolean isPlaceholderCached;
    private final boolean isSampled;
    private final MemoryCache.Key memoryCacheKey;
    private final ImageRequest request;

    public /* synthetic */ SuccessResult(Drawable drawable, ImageRequest imageRequest, DataSource dataSource, MemoryCache.Key key, String str, boolean z6, boolean z7, int i6, h hVar) {
        this(drawable, imageRequest, dataSource, (i6 & 8) != 0 ? null : key, (i6 & 16) != 0 ? null : str, (i6 & 32) != 0 ? false : z6, (i6 & 64) != 0 ? false : z7);
    }

    public static /* synthetic */ SuccessResult copy$default(SuccessResult successResult, Drawable drawable, ImageRequest imageRequest, DataSource dataSource, MemoryCache.Key key, String str, boolean z6, boolean z7, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            drawable = successResult.getDrawable();
        }
        if ((i6 & 2) != 0) {
            imageRequest = successResult.getRequest();
        }
        if ((i6 & 4) != 0) {
            dataSource = successResult.dataSource;
        }
        if ((i6 & 8) != 0) {
            key = successResult.memoryCacheKey;
        }
        if ((i6 & 16) != 0) {
            str = successResult.diskCacheKey;
        }
        if ((i6 & 32) != 0) {
            z6 = successResult.isSampled;
        }
        if ((i6 & 64) != 0) {
            z7 = successResult.isPlaceholderCached;
        }
        boolean z8 = z6;
        boolean z9 = z7;
        String str2 = str;
        DataSource dataSource2 = dataSource;
        return successResult.copy(drawable, imageRequest, dataSource2, key, str2, z8, z9);
    }

    public final SuccessResult copy(Drawable drawable, ImageRequest imageRequest, DataSource dataSource, MemoryCache.Key key, String str, boolean z6, boolean z7) {
        return new SuccessResult(drawable, imageRequest, dataSource, key, str, z6, z7);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof SuccessResult)) {
            return false;
        }
        SuccessResult successResult = (SuccessResult) obj;
        return o.c(getDrawable(), successResult.getDrawable()) && o.c(getRequest(), successResult.getRequest()) && this.dataSource == successResult.dataSource && o.c(this.memoryCacheKey, successResult.memoryCacheKey) && o.c(this.diskCacheKey, successResult.diskCacheKey) && this.isSampled == successResult.isSampled && this.isPlaceholderCached == successResult.isPlaceholderCached;
    }

    public final DataSource getDataSource() {
        return this.dataSource;
    }

    public final String getDiskCacheKey() {
        return this.diskCacheKey;
    }

    @Override // coil.request.ImageResult
    public Drawable getDrawable() {
        return this.drawable;
    }

    public final MemoryCache.Key getMemoryCacheKey() {
        return this.memoryCacheKey;
    }

    @Override // coil.request.ImageResult
    public ImageRequest getRequest() {
        return this.request;
    }

    public int hashCode() {
        int iHashCode = (this.dataSource.hashCode() + ((getRequest().hashCode() + (getDrawable().hashCode() * 31)) * 31)) * 31;
        MemoryCache.Key key = this.memoryCacheKey;
        int iHashCode2 = (iHashCode + (key != null ? key.hashCode() : 0)) * 31;
        String str = this.diskCacheKey;
        return Boolean.hashCode(this.isPlaceholderCached) + a.f((iHashCode2 + (str != null ? str.hashCode() : 0)) * 31, 31, this.isSampled);
    }

    public final boolean isPlaceholderCached() {
        return this.isPlaceholderCached;
    }

    public final boolean isSampled() {
        return this.isSampled;
    }

    public SuccessResult(Drawable drawable, ImageRequest imageRequest, DataSource dataSource, MemoryCache.Key key, String str, boolean z6, boolean z7) {
        super(null);
        this.drawable = drawable;
        this.request = imageRequest;
        this.dataSource = dataSource;
        this.memoryCacheKey = key;
        this.diskCacheKey = str;
        this.isSampled = z6;
        this.isPlaceholderCached = z7;
    }
}
