mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
56 lines
1.6 KiB
Java
56 lines
1.6 KiB
Java
package androidx.databinding;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import java.io.Serializable;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ObservableDouble extends BaseObservableField implements Parcelable, Serializable {
|
|
public static final Parcelable.Creator<ObservableDouble> CREATOR = new Parcelable.Creator<ObservableDouble>() { // from class: androidx.databinding.ObservableDouble.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ObservableDouble createFromParcel(Parcel parcel) {
|
|
return new ObservableDouble(parcel.readDouble());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ObservableDouble[] newArray(int i) {
|
|
return new ObservableDouble[i];
|
|
}
|
|
};
|
|
static final long serialVersionUID = 1;
|
|
private double mValue;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public double get() {
|
|
return this.mValue;
|
|
}
|
|
|
|
public ObservableDouble(double d) {
|
|
this.mValue = d;
|
|
}
|
|
|
|
public ObservableDouble() {
|
|
}
|
|
|
|
public ObservableDouble(Observable... observableArr) {
|
|
super(observableArr);
|
|
}
|
|
|
|
public void set(double d) {
|
|
if (d != this.mValue) {
|
|
this.mValue = d;
|
|
notifyChange();
|
|
}
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeDouble(this.mValue);
|
|
}
|
|
}
|