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 ObservableChar extends BaseObservableField implements Parcelable, Serializable {
|
||
|
public static final Parcelable.Creator<ObservableChar> CREATOR = new Parcelable.Creator<ObservableChar>() { // from class: androidx.databinding.ObservableChar.1
|
||
|
/* JADX WARN: Can't rename method to resolve collision */
|
||
|
@Override // android.os.Parcelable.Creator
|
||
|
public ObservableChar createFromParcel(Parcel parcel) {
|
||
|
return new ObservableChar((char) parcel.readInt());
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Can't rename method to resolve collision */
|
||
|
@Override // android.os.Parcelable.Creator
|
||
|
public ObservableChar[] newArray(int i) {
|
||
|
return new ObservableChar[i];
|
||
|
}
|
||
|
};
|
||
|
static final long serialVersionUID = 1;
|
||
|
private char mValue;
|
||
|
|
||
|
@Override // android.os.Parcelable
|
||
|
public int describeContents() {
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
public char get() {
|
||
|
return this.mValue;
|
||
|
}
|
||
|
|
||
|
public ObservableChar(char c) {
|
||
|
this.mValue = c;
|
||
|
}
|
||
|
|
||
|
public ObservableChar() {
|
||
|
}
|
||
|
|
||
|
public ObservableChar(Observable... observableArr) {
|
||
|
super(observableArr);
|
||
|
}
|
||
|
|
||
|
public void set(char c) {
|
||
|
if (c != this.mValue) {
|
||
|
this.mValue = c;
|
||
|
notifyChange();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.os.Parcelable
|
||
|
public void writeToParcel(Parcel parcel, int i) {
|
||
|
parcel.writeInt(this.mValue);
|
||
|
}
|
||
|
}
|