Rabbit-R1/android (non root)/java/sources/androidx/databinding/ObservableParcelable.java

41 lines
1.4 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.databinding;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
/* loaded from: classes.dex */
public class ObservableParcelable<T extends Parcelable> extends ObservableField<T> implements Parcelable, Serializable {
public static final Parcelable.Creator<ObservableParcelable> CREATOR = new Parcelable.Creator<ObservableParcelable>() { // from class: androidx.databinding.ObservableParcelable.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ObservableParcelable createFromParcel(Parcel parcel) {
return new ObservableParcelable(parcel.readParcelable(getClass().getClassLoader()));
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ObservableParcelable[] newArray(int i) {
return new ObservableParcelable[i];
}
};
static final long serialVersionUID = 1;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public ObservableParcelable(T t) {
super(t);
}
public ObservableParcelable() {
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeParcelable((Parcelable) get(), 0);
}
}