mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
44 lines
1.4 KiB
Java
44 lines
1.4 KiB
Java
package androidx.versionedparcelable;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ParcelImpl implements Parcelable {
|
|
public static final Parcelable.Creator<ParcelImpl> CREATOR = new Parcelable.Creator<ParcelImpl>() { // from class: androidx.versionedparcelable.ParcelImpl.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ParcelImpl createFromParcel(Parcel parcel) {
|
|
return new ParcelImpl(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ParcelImpl[] newArray(int i) {
|
|
return new ParcelImpl[i];
|
|
}
|
|
};
|
|
private final VersionedParcelable mParcel;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public <T extends VersionedParcelable> T getVersionedParcel() {
|
|
return (T) this.mParcel;
|
|
}
|
|
|
|
public ParcelImpl(VersionedParcelable versionedParcelable) {
|
|
this.mParcel = versionedParcelable;
|
|
}
|
|
|
|
protected ParcelImpl(Parcel parcel) {
|
|
this.mParcel = new VersionedParcelParcel(parcel).readVersionedParcelable();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
new VersionedParcelParcel(parcel).writeVersionedParcelable(this.mParcel);
|
|
}
|
|
}
|