package androidx.customview.view;

import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;

public abstract class AbsSavedState implements Parcelable {
    public static final Parcelable.Creator<AbsSavedState> CREATOR = new Parcelable.ClassLoaderCreator<AbsSavedState>() {
        static {
            Covode.recordClassIndex(932);
        }

        public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
            return new AbsSavedState[i];
        }

        public final /* synthetic */ Object createFromParcel(Parcel parcel) {
            return createFromParcel(parcel, (ClassLoader) null);
        }

        /* access modifiers changed from: private */
        /* renamed from: LIZ */
        public AbsSavedState createFromParcel(Parcel parcel, ClassLoader classLoader) {
            if (parcel.readParcelable(classLoader) == null) {
                return AbsSavedState.LIZJ;
            }
            throw new IllegalStateException("superState must be null");
        }
    };
    public static final AbsSavedState LIZJ = new AbsSavedState() {
        static {
            Covode.recordClassIndex(931);
        }
    };
    public final Parcelable LIZLLL;

    public int describeContents() {
        return 0;
    }

    public AbsSavedState() {
    }

    static {
        Covode.recordClassIndex(930);
    }

    public /* synthetic */ AbsSavedState(byte b) {
        this();
    }

    public AbsSavedState(Parcelable parcelable) {
        if (parcelable != null) {
            this.LIZLLL = parcelable == LIZJ ? null : parcelable;
            return;
        }
        throw new IllegalArgumentException("superState must not be null");
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeParcelable(this.LIZLLL, i);
    }

    public AbsSavedState(Parcel parcel, ClassLoader classLoader) {
        Parcelable readParcelable = parcel.readParcelable(classLoader);
        this.LIZLLL = readParcelable == null ? LIZJ : readParcelable;
    }
}
