package com.google.android.gms.internal.ads;

import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import java.util.Arrays;
import org.json.JSONArray;
import org.json.JSONException;

/* JADX INFO: loaded from: classes2.dex */
public final class n00 extends f8.a {
    public static final Parcelable.Creator<n00> CREATOR = new wk(16);

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f14393b;

    public n00(String str, int i10) {
        this.f14392a = str;
        this.f14393b = i10;
    }

    @Nullable
    public static n00 zza(JSONArray jSONArray) throws JSONException {
        if (jSONArray == null || jSONArray.length() == 0) {
            return null;
        }
        return new n00(jSONArray.getJSONObject(0).optString("rb_type"), jSONArray.getJSONObject(0).optInt("rb_amount"));
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof n00)) {
            return false;
        }
        n00 n00Var = (n00) obj;
        return com.google.android.gms.common.internal.v.equal(this.f14392a, n00Var.f14392a) && com.google.android.gms.common.internal.v.equal(Integer.valueOf(this.f14393b), Integer.valueOf(n00Var.f14393b));
    }

    public final int hashCode() {
        return Arrays.hashCode(new Object[]{this.f14392a, Integer.valueOf(this.f14393b)});
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        int I = com.bumptech.glide.g.I(20293, parcel);
        com.bumptech.glide.g.r(parcel, 2, this.f14392a);
        com.bumptech.glide.g.C(parcel, 3, 4);
        parcel.writeInt(this.f14393b);
        com.bumptech.glide.g.N(I, parcel);
    }
}
