Rabbit-R1/original r1/java/sources/androidx/databinding/ObservableChar.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 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);
}
}