Rabbit-R1/original r1/java/sources/androidx/databinding/ObservableField.java
2024-05-21 17:08:36 -04:00

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();
}
}
}