public class ObservableLong extends BaseObservable implements android.os.Parcelable, java.io.Serializable
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.
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>Observable.OnPropertyChangedCallback| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ObservableLong> |
CREATOR |
| Constructor and Description |
|---|
ObservableLong()
Creates an ObservableLong with the initial value of
0L. |
ObservableLong(long value)
Creates an ObservableLong with the given initial value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
long |
get() |
void |
set(long value) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
addOnPropertyChangedCallback, notifyChange, notifyPropertyChanged, removeOnPropertyChangedCallbackpublic static final android.os.Parcelable.Creator<ObservableLong> CREATOR
public ObservableLong(long value)
value - the initial value for the ObservableLongpublic ObservableLong()
0L.public long get()
public void set(long value)
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable