package com.martsnew.domain.model;

import B6.t;
import P6.g;
import android.os.Parcel;
import android.os.Parcelable;
import d5.AbstractC0844a;
import java.util.Iterator;
import java.util.List;
import k5.l;

/* JADX INFO: loaded from: classes.dex */
public final class Shortcut implements Parcelable {
    public static final Parcelable.Creator<Shortcut> CREATOR = new l(2);

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final String f11085q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final String f11086r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final List f11087s;

    /* JADX WARN: Illegal instructions before constructor call */
    public Shortcut() {
        String str = null;
        this(7, str, str);
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Shortcut)) {
            return false;
        }
        Shortcut shortcut = (Shortcut) obj;
        return g.a(this.f11085q, shortcut.f11085q) && g.a(this.f11086r, shortcut.f11086r) && g.a(this.f11087s, shortcut.f11087s);
    }

    public final int hashCode() {
        return this.f11087s.hashCode() + AbstractC0844a.g(this.f11085q.hashCode() * 31, 31, this.f11086r);
    }

    public final String toString() {
        return "Shortcut(id=" + this.f11085q + ", title=" + this.f11086r + ", filters=" + this.f11087s + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        g.e(parcel, "dest");
        parcel.writeString(this.f11085q);
        parcel.writeString(this.f11086r);
        List list = this.f11087s;
        parcel.writeInt(list.size());
        Iterator it = list.iterator();
        while (it.hasNext()) {
            ((Filter) it.next()).writeToParcel(parcel, i);
        }
    }

    public /* synthetic */ Shortcut(int i, String str, String str2) {
        this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? "" : str2, t.f1032q);
    }

    public Shortcut(String str, String str2, List list) {
        g.e(str, "id");
        g.e(str2, "title");
        g.e(list, "filters");
        this.f11085q = str;
        this.f11086r = str2;
        this.f11087s = list;
    }
}
