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

104 lines
3.1 KiB
Java

package o;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import o.C5335brB;
/* renamed from: o.oIZ, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16424oIZ {
@SerializedName("endOfListFlag")
private final String b;
@SerializedName(alternate = {"business"}, value = "company")
private final List<IeS> d;
@SerializedName("nextPageNumber")
private final Integer e;
public final C5335brB d() {
Integer num = this.e;
String str = this.b;
C14957gcv.e(str, "");
boolean z = Integer.parseInt(str) == 1;
List<IeS> list = this.d;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (IeS ieS : list) {
arrayList.add(new C5335brB.IeS(ieS.c, ieS.a));
}
return new C5335brB(arrayList, num, !z);
}
/* renamed from: o.oIZ$IeS */
/* loaded from: classes3.dex */
public static final class IeS {
@SerializedName(alternate = {"merchantName"}, value = "companyName")
final String a;
@SerializedName(alternate = {"merchantId"}, value = "companyId")
final String c;
public final String toString() {
String str = this.c;
String str2 = this.a;
StringBuilder sb = new StringBuilder("CompanyEntity(companyId=");
sb.append(str);
sb.append(", companyName=");
sb.append(str2);
sb.append(")");
return sb.toString();
}
public final int hashCode() {
return (this.c.hashCode() * 31) + this.a.hashCode();
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof IeS)) {
return false;
}
IeS ieS = (IeS) obj;
return C14957gcv.b((Object) this.c, (Object) ieS.c) && C14957gcv.b((Object) this.a, (Object) ieS.a);
}
}
public final String toString() {
List<IeS> list = this.d;
Integer num = this.e;
String str = this.b;
StringBuilder sb = new StringBuilder("HmlCompanyListPageEntity(company=");
sb.append(list);
sb.append(", nextPageNumber=");
sb.append(num);
sb.append(", endOfListFlag=");
sb.append(str);
sb.append(")");
return sb.toString();
}
public final int hashCode() {
int hashCode = this.d.hashCode();
Integer num = this.e;
return (((hashCode * 31) + (num == null ? 0 : num.hashCode())) * 31) + this.b.hashCode();
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof C16424oIZ)) {
return false;
}
C16424oIZ c16424oIZ = (C16424oIZ) obj;
return C14957gcv.b(this.d, c16424oIZ.d) && C14957gcv.b(this.e, c16424oIZ.e) && C14957gcv.b((Object) this.b, (Object) c16424oIZ.b);
}
}