package com.applovin.impl; import android.os.Parcel; import android.os.Parcelable; import com.ironsource.mediationsdk.logger.IronSourceError; import com.mbridge.msdk.playercommon.exoplayer2.metadata.id3.ChapterTocFrame; import java.util.Arrays; /* loaded from: classes.dex */ public final class f3 extends ya { public static final Parcelable.Creator CREATOR = new a(); public final String b; public final boolean c; public final boolean d; public final String[] f; private final ya[] g; public f3(Parcel parcel) { super(ChapterTocFrame.ID); this.b = (String) xp.a((Object) parcel.readString()); this.c = parcel.readByte() != 0; this.d = parcel.readByte() != 0; this.f = (String[]) xp.a((Object) parcel.createStringArray()); int readInt = parcel.readInt(); this.g = new ya[readInt]; for (int i = 0; i < readInt; i++) { this.g[i] = (ya) parcel.readParcelable(ya.class.getClassLoader()); } } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || f3.class != obj.getClass()) { return false; } f3 f3Var = (f3) obj; return this.c == f3Var.c && this.d == f3Var.d && xp.a((Object) this.b, (Object) f3Var.b) && Arrays.equals(this.f, f3Var.f) && Arrays.equals(this.g, f3Var.g); } public int hashCode() { int i = ((((this.c ? 1 : 0) + IronSourceError.ERROR_NON_EXISTENT_INSTANCE) * 31) + (this.d ? 1 : 0)) * 31; String str = this.b; return i + (str != null ? str.hashCode() : 0); } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i) { parcel.writeString(this.b); parcel.writeByte(this.c ? (byte) 1 : (byte) 0); parcel.writeByte(this.d ? (byte) 1 : (byte) 0); parcel.writeStringArray(this.f); parcel.writeInt(this.g.length); for (ya yaVar : this.g) { parcel.writeParcelable(yaVar, 0); } } public f3(String str, boolean z, boolean z2, String[] strArr, ya[] yaVarArr) { super(ChapterTocFrame.ID); this.b = str; this.c = z; this.d = z2; this.f = strArr; this.g = yaVarArr; } public class a implements Parcelable.Creator { @Override // android.os.Parcelable.Creator /* renamed from: a, reason: merged with bridge method [inline-methods] */ public f3[] newArray(int i) { return new f3[i]; } @Override // android.os.Parcelable.Creator /* renamed from: a, reason: merged with bridge method [inline-methods] */ public f3 createFromParcel(Parcel parcel) { return new f3(parcel); } } }