mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
34 lines
783 B
Java
34 lines
783 B
Java
package androidx.databinding;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import java.io.Serializable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes13.dex */
|
|
public class ObservableField<T> extends BaseObservableField implements Serializable {
|
|
static final long serialVersionUID = 1;
|
|
private T mValue;
|
|
|
|
public ObservableField(T t) {
|
|
this.mValue = t;
|
|
}
|
|
|
|
@Nullable
|
|
public T get() {
|
|
return this.mValue;
|
|
}
|
|
|
|
public void set(T t) {
|
|
if (t != this.mValue) {
|
|
this.mValue = t;
|
|
notifyChange();
|
|
}
|
|
}
|
|
|
|
public ObservableField() {
|
|
}
|
|
|
|
public ObservableField(Observable... observableArr) {
|
|
super(observableArr);
|
|
}
|
|
}
|