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 ObservableFloat extends BaseObservableField implements Parcelable, Serializable {
|
|
public static final Parcelable.Creator<ObservableFloat> CREATOR = new Parcelable.Creator<ObservableFloat>() { // from class: androidx.databinding.ObservableFloat.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ObservableFloat createFromParcel(Parcel parcel) {
|
|
return new ObservableFloat(parcel.readFloat());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ObservableFloat[] newArray(int i) {
|
|
return new ObservableFloat[i];
|
|
}
|
|
};
|
|
static final long serialVersionUID = 1;
|
|
private float mValue;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public float get() {
|
|
return this.mValue;
|
|
}
|
|
|
|
public ObservableFloat(float f) {
|
|
this.mValue = f;
|
|
}
|
|
|
|
public ObservableFloat() {
|
|
}
|
|
|
|
public ObservableFloat(Observable... observableArr) {
|
|
super(observableArr);
|
|
}
|
|
|
|
public void set(float f) {
|
|
if (f != this.mValue) {
|
|
this.mValue = f;
|
|
notifyChange();
|
|
}
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeFloat(this.mValue);
|
|
}
|
|
}
|