package o; import android.os.Parcel; import android.os.Parcelable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* loaded from: classes3.dex */ public final class GW implements Parcelable { public static final Parcelable.Creator CREATOR = new RVV(); public List a; public Integer b; public String c; @Override // android.os.Parcelable public final int describeContents() { return 0; } public GW(Integer num, String str, List list) { this.b = num; this.c = str; this.a = list; } public /* synthetic */ GW(byte b) { this(null, null, null); } /* loaded from: classes3.dex */ public static final class RVV implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ GW createFromParcel(Parcel parcel) { C14957gcv.e(parcel, ""); ArrayList arrayList = null; Integer valueOf = parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()); String readString = parcel.readString(); if (parcel.readInt() != 0) { int readInt = parcel.readInt(); ArrayList arrayList2 = new ArrayList(readInt); for (int i = 0; i != readInt; i++) { arrayList2.add(GU.CREATOR.createFromParcel(parcel)); } arrayList = arrayList2; } return new GW(valueOf, readString, arrayList); } @Override // android.os.Parcelable.Creator public final /* bridge */ /* synthetic */ GW[] newArray(int i) { return new GW[i]; } } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { C14957gcv.e(parcel, ""); Integer num = this.b; if (num == null) { parcel.writeInt(0); } else { parcel.writeInt(1); parcel.writeInt(num.intValue()); } parcel.writeString(this.c); List list = this.a; if (list == null) { parcel.writeInt(0); return; } parcel.writeInt(1); parcel.writeInt(list.size()); Iterator it = list.iterator(); while (it.hasNext()) { it.next().writeToParcel(parcel, i); } } public final String toString() { Integer num = this.b; String str = this.c; List list = this.a; StringBuilder sb = new StringBuilder("AvailableCycleItemDisplay(maxSelectCycle="); sb.append(num); sb.append(", year="); sb.append(str); sb.append(", months="); sb.append(list); sb.append(")"); return sb.toString(); } public final int hashCode() { Integer num = this.b; int hashCode = num == null ? 0 : num.hashCode(); String str = this.c; int hashCode2 = str == null ? 0 : str.hashCode(); List list = this.a; return (((hashCode * 31) + hashCode2) * 31) + (list != null ? list.hashCode() : 0); } public final boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof GW)) { return false; } GW gw = (GW) obj; return C14957gcv.b(this.b, gw.b) && C14957gcv.b((Object) this.c, (Object) gw.c) && C14957gcv.b(this.a, gw.a); } public GW() { this((byte) 0); } }