Rabbit-R1/android (non root)/java/sources/androidx/databinding/ObservableInt.java

57 lines
1.5 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.databinding;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
/* loaded from: classes.dex */
public class ObservableInt extends BaseObservableField implements Parcelable, Serializable {
public static final Parcelable.Creator<ObservableInt> CREATOR = new Parcelable.Creator<ObservableInt>() { // from class: androidx.databinding.ObservableInt.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ObservableInt createFromParcel(Parcel parcel) {
return new ObservableInt(parcel.readInt());
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ObservableInt[] newArray(int i) {
return new ObservableInt[i];
}
};
static final long serialVersionUID = 1;
private int mValue;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public int get() {
return this.mValue;
}
public ObservableInt(int i) {
this.mValue = i;
}
public ObservableInt() {
}
public ObservableInt(Observable... observableArr) {
super(observableArr);
}
public void set(int i) {
if (i != this.mValue) {
this.mValue = i;
notifyChange();
}
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.mValue);
}
}