package com.codezjx.andlinker;

import android.os.Parcel;
import android.os.Parcelable;
import d.c.a.t;

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public Object f1943e;

    public static class a implements Parcelable.Creator<InTypeWrapper> {
        @Override // android.os.Parcelable.Creator
        public InTypeWrapper createFromParcel(Parcel parcel) {
            return new InTypeWrapper(parcel, (a) null);
        }

        @Override // android.os.Parcelable.Creator
        public InTypeWrapper[] newArray(int i2) {
            return new InTypeWrapper[i2];
        }
    }

    public InTypeWrapper(Object obj, Class<?> cls) {
        this.f1942b = c.n.a.C(cls);
        this.f1943e = obj;
    }

    @Override // com.codezjx.andlinker.BaseTypeWrapper
    public Object a() {
        return this.f1943e;
    }

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

    @Override // com.codezjx.andlinker.BaseTypeWrapper
    public int getType() {
        return this.f1942b;
    }

    @Override // com.codezjx.andlinker.BaseTypeWrapper, com.codezjx.andlinker.SuperParcelable
    public void readFromParcel(Parcel parcel) {
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        if (i2 == 1) {
            return;
        }
        parcel.writeInt(this.f1942b);
        t.a[this.f1942b].c(parcel, i2, this.f1943e);
    }

    public InTypeWrapper(Parcel parcel, a aVar) {
        int i2 = parcel.readInt();
        this.f1942b = i2;
        this.f1943e = t.a[i2].createFromParcel(parcel);
    }
}
