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

119 lines
3.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes3.dex */
public final class HN implements Parcelable {
public static final Parcelable.Creator<HN> CREATOR = new IeS();
public final HM a;
public final List<HU> c;
public final HP d;
public final String e;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
public HN(String str, HP hp, List<HU> list, HM hm) {
this.e = str;
this.d = hp;
this.c = list;
this.a = hm;
}
/* loaded from: classes3.dex */
public static final class IeS implements Parcelable.Creator<HN> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ HN createFromParcel(Parcel parcel) {
ArrayList arrayList;
C14957gcv.e(parcel, "");
String readString = parcel.readString();
HP hp = (HP) parcel.readParcelable(HN.class.getClassLoader());
if (parcel.readInt() == 0) {
arrayList = null;
} else {
int readInt = parcel.readInt();
arrayList = new ArrayList(readInt);
for (int i = 0; i != readInt; i++) {
arrayList.add(parcel.readParcelable(HN.class.getClassLoader()));
}
}
return new HN(readString, hp, arrayList, parcel.readInt() != 0 ? HM.CREATOR.createFromParcel(parcel) : null);
}
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ HN[] newArray(int i) {
return new HN[i];
}
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
C14957gcv.e(parcel, "");
parcel.writeString(this.e);
parcel.writeParcelable(this.d, i);
List<HU> list = this.c;
if (list == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeInt(list.size());
Iterator<HU> it = list.iterator();
while (it.hasNext()) {
parcel.writeParcelable(it.next(), i);
}
}
HM hm = this.a;
if (hm == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
hm.writeToParcel(parcel, i);
}
}
public final String toString() {
String str = this.e;
HP hp = this.d;
List<HU> list = this.c;
HM hm = this.a;
StringBuilder sb = new StringBuilder("MerchantMetaDataDisplay(callbackUrl=");
sb.append(str);
sb.append(", merchantInfo=");
sb.append(hp);
sb.append(", paymentInfo=");
sb.append(list);
sb.append(", pointRedemption=");
sb.append(hm);
sb.append(")");
return sb.toString();
}
public final int hashCode() {
String str = this.e;
int hashCode = str == null ? 0 : str.hashCode();
HP hp = this.d;
int hashCode2 = hp == null ? 0 : hp.hashCode();
List<HU> list = this.c;
int hashCode3 = list == null ? 0 : list.hashCode();
HM hm = this.a;
return (((((hashCode * 31) + hashCode2) * 31) + hashCode3) * 31) + (hm != null ? hm.hashCode() : 0);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof HN)) {
return false;
}
HN hn = (HN) obj;
return C14957gcv.b((Object) this.e, (Object) hn.e) && C14957gcv.b(this.d, hn.d) && C14957gcv.b(this.c, hn.c) && C14957gcv.b(this.a, hn.a);
}
}