mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
57 lines
1.6 KiB
Java
57 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);
|
||
|
}
|
||
|
}
|