mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
57 lines
1.7 KiB
Java
57 lines
1.7 KiB
Java
package androidx.databinding;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import java.io.Serializable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes13.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;
|
|
|
|
public ObservableShort(short s) {
|
|
this.mValue = s;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public short get() {
|
|
return this.mValue;
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
public ObservableShort() {
|
|
}
|
|
|
|
public ObservableShort(Observable... observableArr) {
|
|
super(observableArr);
|
|
}
|
|
}
|