130 lines
4.0 KiB
Java
130 lines
4.0 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.core.app.NotificationCompat;
|
|
import b.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetRadioSelectorBottomSheet.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class RadioSelectorItem implements Parcelable {
|
|
public static final Parcelable.Creator<RadioSelectorItem> CREATOR = new Creator();
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final int f2843id;
|
|
private final boolean selected;
|
|
private final String text;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class Creator implements Parcelable.Creator<RadioSelectorItem> {
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public final RadioSelectorItem createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
return new RadioSelectorItem(parcel.readInt(), parcel.readString(), parcel.readInt() != 0);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public final RadioSelectorItem[] newArray(int i) {
|
|
return new RadioSelectorItem[i];
|
|
}
|
|
}
|
|
|
|
public RadioSelectorItem(int i, String str, boolean z2) {
|
|
m.checkNotNullParameter(str, NotificationCompat.MessagingStyle.Message.KEY_TEXT);
|
|
this.f2843id = i;
|
|
this.text = str;
|
|
this.selected = z2;
|
|
}
|
|
|
|
public static /* synthetic */ RadioSelectorItem copy$default(RadioSelectorItem radioSelectorItem, int i, String str, boolean z2, int i2, Object obj) {
|
|
if ((i2 & 1) != 0) {
|
|
i = radioSelectorItem.f2843id;
|
|
}
|
|
if ((i2 & 2) != 0) {
|
|
str = radioSelectorItem.text;
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
z2 = radioSelectorItem.selected;
|
|
}
|
|
return radioSelectorItem.copy(i, str, z2);
|
|
}
|
|
|
|
public final int component1() {
|
|
return this.f2843id;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.text;
|
|
}
|
|
|
|
public final boolean component3() {
|
|
return this.selected;
|
|
}
|
|
|
|
public final RadioSelectorItem copy(int i, String str, boolean z2) {
|
|
m.checkNotNullParameter(str, NotificationCompat.MessagingStyle.Message.KEY_TEXT);
|
|
return new RadioSelectorItem(i, str, z2);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof RadioSelectorItem)) {
|
|
return false;
|
|
}
|
|
RadioSelectorItem radioSelectorItem = (RadioSelectorItem) obj;
|
|
return this.f2843id == radioSelectorItem.f2843id && m.areEqual(this.text, radioSelectorItem.text) && this.selected == radioSelectorItem.selected;
|
|
}
|
|
|
|
public final int getId() {
|
|
return this.f2843id;
|
|
}
|
|
|
|
public final boolean getSelected() {
|
|
return this.selected;
|
|
}
|
|
|
|
public final String getText() {
|
|
return this.text;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int i = this.f2843id * 31;
|
|
String str = this.text;
|
|
int hashCode = (i + (str != null ? str.hashCode() : 0)) * 31;
|
|
boolean z2 = this.selected;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i2 = z2 ? 1 : 0;
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
return hashCode + i2;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("RadioSelectorItem(id=");
|
|
R.append(this.f2843id);
|
|
R.append(", text=");
|
|
R.append(this.text);
|
|
R.append(", selected=");
|
|
return a.M(R, this.selected, ")");
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeInt(this.f2843id);
|
|
parcel.writeString(this.text);
|
|
parcel.writeInt(this.selected ? 1 : 0);
|
|
}
|
|
}
|