Rabbit-R1/android (non root)/java/sources/androidx/databinding/ObservableShort.java
2024-05-21 17:08:36 -04:00

56 lines
1.6 KiB
Java

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