public class ObservableDouble extends BaseObservable implements android.os.Parcelable, java.io.Serializable
Observable field classes may be used instead of creating an Observable object:
public class MyDataObject {
     public final ObservableDouble temperature = new ObservableDouble();
 }This class is parcelable and serializable but callbacks are ignored when the object is parcelled / serialized. Unless you add custom callbacks, this will not be an issue because data binding framework always re-registers callbacks when the view is bound.
| Modifier and Type | Field and Description | 
|---|---|
| static android.os.Parcelable.Creator<ObservableDouble> | CREATOR | 
| Constructor and Description | 
|---|
| ObservableDouble()Creates an ObservableDouble with the initial value of  0. | 
| ObservableDouble(double value)Creates an ObservableDouble with the given initial value. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | describeContents() | 
| double | get() | 
| void | set(double value)Set the stored value. | 
| void | writeToParcel(android.os.Parcel dest,
             int flags) | 
addOnPropertyChangedCallback, notifyChange, notifyPropertyChanged, removeOnPropertyChangedCallbackpublic static final android.os.Parcelable.Creator<ObservableDouble> CREATOR
public ObservableDouble(double value)
value - the initial value for the ObservableDoublepublic ObservableDouble()
0.public double get()
public void set(double value)
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
                 int flags)
writeToParcel in interface android.os.Parcelable