package com.ifpdos.debugmenu.upgrades.entrties;

import android.widget.TextView;
import com.ifpdos.debugmenu.upgrades.entrties.DeviceInfo;
import d.b.a.a.a;
import d.f.a.q2.e.g;
import g.h0.c.l;
import g.i;

/* JADX INFO: compiled from: UpgradeProgressData.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class UpgradeProgressData<T extends DeviceInfo> {
    private Progress progress;
    private TextView progressView;
    private final g<T> upgradeTask;

    public UpgradeProgressData(g<T> gVar, Progress progress, TextView textView) {
        l.f(gVar, "upgradeTask");
        l.f(progress, "progress");
        this.upgradeTask = gVar;
        this.progress = progress;
        this.progressView = textView;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ UpgradeProgressData copy$default(UpgradeProgressData upgradeProgressData, g gVar, Progress progress, TextView textView, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            gVar = upgradeProgressData.upgradeTask;
        }
        if ((i2 & 2) != 0) {
            progress = upgradeProgressData.progress;
        }
        if ((i2 & 4) != 0) {
            textView = upgradeProgressData.progressView;
        }
        return upgradeProgressData.copy(gVar, progress, textView);
    }

    public final g<T> component1() {
        return this.upgradeTask;
    }

    public final Progress component2() {
        return this.progress;
    }

    public final TextView component3() {
        return this.progressView;
    }

    public final UpgradeProgressData<T> copy(g<T> gVar, Progress progress, TextView textView) {
        l.f(gVar, "upgradeTask");
        l.f(progress, "progress");
        return new UpgradeProgressData<>(gVar, progress, textView);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof UpgradeProgressData)) {
            return false;
        }
        UpgradeProgressData upgradeProgressData = (UpgradeProgressData) obj;
        return l.a(this.upgradeTask, upgradeProgressData.upgradeTask) && l.a(this.progress, upgradeProgressData.progress) && l.a(this.progressView, upgradeProgressData.progressView);
    }

    public final Progress getProgress() {
        return this.progress;
    }

    public final TextView getProgressView() {
        return this.progressView;
    }

    public final g<T> getUpgradeTask() {
        return this.upgradeTask;
    }

    public int hashCode() {
        int iHashCode = (this.progress.hashCode() + (this.upgradeTask.hashCode() * 31)) * 31;
        TextView textView = this.progressView;
        return iHashCode + (textView == null ? 0 : textView.hashCode());
    }

    public final void release() {
        this.progressView = null;
    }

    public final void setProgress(Progress progress) {
        l.f(progress, "<set-?>");
        this.progress = progress;
    }

    public final void setProgressView(TextView textView) {
        this.progressView = textView;
    }

    public String toString() {
        StringBuilder sbB = a.B("UpgradeProgressData(upgradeTask=");
        sbB.append(this.upgradeTask);
        sbB.append(", progress=");
        sbB.append(this.progress);
        sbB.append(", progressView=");
        sbB.append(this.progressView);
        sbB.append(')');
        return sbB.toString();
    }

    public /* synthetic */ UpgradeProgressData(g gVar, Progress progress, TextView textView, int i2, g.h0.c.g gVar2) {
        this(gVar, (i2 & 2) != 0 ? new Progress(false, false, null, 7, null) : progress, (i2 & 4) != 0 ? null : textView);
    }
}
