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

57 lines
1.6 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 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);
}
}