package com.codezjx.andlinker;

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

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

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

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

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

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

    public InOutTypeWrapper(Object obj, Class<?> cls) {
        this.f1940b = c.n.a.C(cls);
        this.f1941e = obj;
    }

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

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

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

    @Override // com.codezjx.andlinker.BaseTypeWrapper, com.codezjx.andlinker.SuperParcelable
    public void readFromParcel(Parcel parcel) {
        int i2 = parcel.readInt();
        this.f1940b = i2;
        ((n) t.a[i2]).b(parcel, this.f1941e);
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeInt(this.f1940b);
        t.a[this.f1940b].c(parcel, i2, this.f1941e);
    }

    public InOutTypeWrapper(Parcel parcel, a aVar) {
        int i2 = parcel.readInt();
        this.f1940b = i2;
        this.f1941e = t.a[i2].createFromParcel(parcel);
    }
}
