mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
31 lines
634 B
Java
31 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();
|
|
}
|
|
}
|
|
}
|