package o; import android.os.Parcel; import android.os.Parcelable; import com.airbnb.deeplinkdispatch.UrlTreeKt; /* loaded from: classes3.dex */ public abstract class EM implements Parcelable { public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: o.EM.5 @Override // android.os.Parcelable.Creator public final /* synthetic */ EM createFromParcel(Parcel parcel) { switch (AnonymousClass2.d[YD.values()[parcel.readInt()].ordinal()]) { case 1: case 2: return QN.CREATOR.createFromParcel(parcel); case 3: case 4: return QQ.CREATOR.createFromParcel(parcel); case 5: return QK.CREATOR.createFromParcel(parcel); case 6: case 7: case 8: return QO.CREATOR.createFromParcel(parcel); case 9: return QR.CREATOR.createFromParcel(parcel); case 10: return QM.CREATOR.createFromParcel(parcel); case 11: return QE.CREATOR.createFromParcel(parcel); case 12: return QP.CREATOR.createFromParcel(parcel); case 13: return QJ.CREATOR.createFromParcel(parcel); case 14: case 15: return EM.CREATOR.createFromParcel(parcel); case 16: return QG.CREATOR.createFromParcel(parcel); default: StringBuilder sb = new StringBuilder("Not supported ordinal:"); sb.append(parcel.readInt()); throw new UnsupportedOperationException(sb.toString()); } } @Override // android.os.Parcelable.Creator public final /* bridge */ /* synthetic */ EM[] newArray(int i) { return new EM[i]; } }; public YD d; protected abstract void UU_(Parcel parcel, int i); @Override // android.os.Parcelable public int describeContents() { return 0; } public EM(YD yd) { this.d = yd; } public EM(Parcel parcel) { this.d = YD.values()[parcel.readInt()]; } /* renamed from: o.EM$2, reason: invalid class name */ /* loaded from: classes3.dex */ static /* synthetic */ class AnonymousClass2 { static final int[] d; static { int[] iArr = new int[YD.values().length]; d = iArr; try { iArr[YD.SUCCESS_HEADER.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { d[YD.REVAMP_SUCCESS_HEADER.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { d[YD.SEPARATOR.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { d[YD.REVAMP_SEPARATOR.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { d[YD.ICON.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { d[YD.SIMPLE_SUB_ITEM.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { d[YD.SIMPLE.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } try { d[YD.REVAMP_SIMPLE.ordinal()] = 8; } catch (NoSuchFieldError unused8) { } try { d[YD.SIMPLE_BOTTOM.ordinal()] = 9; } catch (NoSuchFieldError unused9) { } try { d[YD.PHOTO_DETAIL.ordinal()] = 10; } catch (NoSuchFieldError unused10) { } try { d[YD.CARD.ordinal()] = 11; } catch (NoSuchFieldError unused11) { } try { d[YD.REMARK.ordinal()] = 12; } catch (NoSuchFieldError unused12) { } try { d[YD.COMPLEX_INTEREST.ordinal()] = 13; } catch (NoSuchFieldError unused13) { } try { d[YD.HEADER_TITLE.ordinal()] = 14; } catch (NoSuchFieldError unused14) { } try { d[YD.TITLE.ordinal()] = 15; } catch (NoSuchFieldError unused15) { } try { d[YD.ADDITIONAL_META_DATA.ordinal()] = 16; } catch (NoSuchFieldError unused16) { } } } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { parcel.writeInt(this.d.ordinal()); UU_(parcel, i); } public boolean equals(Object obj) { if (this == obj) { return true; } return obj != null && getClass() == obj.getClass() && this.d == ((EM) obj).d; } public int hashCode() { YD yd = this.d; if (yd != null) { return yd.hashCode(); } return 0; } public String toString() { StringBuilder sb = new StringBuilder("BaseItemDisplay{itemType="); sb.append(this.d); sb.append(UrlTreeKt.componentParamSuffixChar); return sb.toString(); } }