what-the-bank/sources/o/HB.java

107 lines
3.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.os.Parcel;
import android.os.Parcelable;
/* loaded from: classes3.dex */
public final class HB implements Parcelable {
public static final Parcelable.Creator<HB> CREATOR = new LWm();
public final HD a;
public final String b;
private final int c;
public final YX d;
public final String e;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
public HB(YX yx, String str, int i, String str2, HD hd) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
this.d = yx;
this.e = str;
this.c = i;
this.b = str2;
this.a = hd;
}
/* loaded from: classes3.dex */
public static final class LWm implements Parcelable.Creator<HB> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ HB createFromParcel(Parcel parcel) {
C14957gcv.e(parcel, "");
return new HB(parcel.readInt() == 0 ? null : YX.valueOf(parcel.readString()), parcel.readString(), parcel.readInt(), parcel.readString(), parcel.readInt() != 0 ? HD.CREATOR.createFromParcel(parcel) : null);
}
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ HB[] newArray(int i) {
return new HB[i];
}
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
C14957gcv.e(parcel, "");
YX yx = this.d;
if (yx == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(yx.name());
}
parcel.writeString(this.e);
parcel.writeInt(this.c);
parcel.writeString(this.b);
HD hd = this.a;
if (hd == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
hd.writeToParcel(parcel, i);
}
}
public final String toString() {
YX yx = this.d;
String str = this.e;
int i = this.c;
String str2 = this.b;
HD hd = this.a;
StringBuilder sb = new StringBuilder("PointToPayTransactionLandingDisplay(transactionType=");
sb.append(yx);
sb.append(", description=");
sb.append(str);
sb.append(", rewardPoints=");
sb.append(i);
sb.append(", formattedRewardPoints=");
sb.append(str2);
sb.append(", transactionDataDisplay=");
sb.append(hd);
sb.append(")");
return sb.toString();
}
public final int hashCode() {
YX yx = this.d;
int hashCode = yx == null ? 0 : yx.hashCode();
int hashCode2 = this.e.hashCode();
int hashCode3 = Integer.hashCode(this.c);
int hashCode4 = this.b.hashCode();
HD hd = this.a;
return (((((((hashCode * 31) + hashCode2) * 31) + hashCode3) * 31) + hashCode4) * 31) + (hd != null ? hd.hashCode() : 0);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof HB)) {
return false;
}
HB hb = (HB) obj;
return this.d == hb.d && C14957gcv.b((Object) this.e, (Object) hb.e) && this.c == hb.c && C14957gcv.b((Object) this.b, (Object) hb.b) && C14957gcv.b(this.a, hb.a);
}
}