mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
32 lines
634 B
Java
32 lines
634 B
Java
|
package androidx.databinding;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class ObservableField<T> extends BaseObservableField implements Serializable {
|
||
|
static final long serialVersionUID = 1;
|
||
|
private T mValue;
|
||
|
|
||
|
public T get() {
|
||
|
return this.mValue;
|
||
|
}
|
||
|
|
||
|
public ObservableField(T t) {
|
||
|
this.mValue = t;
|
||
|
}
|
||
|
|
||
|
public ObservableField() {
|
||
|
}
|
||
|
|
||
|
public ObservableField(Observable... observableArr) {
|
||
|
super(observableArr);
|
||
|
}
|
||
|
|
||
|
public void set(T t) {
|
||
|
if (t != this.mValue) {
|
||
|
this.mValue = t;
|
||
|
notifyChange();
|
||
|
}
|
||
|
}
|
||
|
}
|