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

85 lines
2.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
/* renamed from: o.sy, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16997sy extends BaseAssetsDisplayMapper {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C16997sy(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
public static String a(String str, String str2, boolean z) {
C14957gcv.e(str, "");
if (C14957gcv.b((Object) str, (Object) "CREDIT_CARD")) {
return !z ? "B2K" : str2;
}
return null;
}
public final List<C0656Ln> c(List<C1219YfU> list) {
String str;
String str2;
C14957gcv.e(list, "");
List<C1219YfU> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (C1219YfU c1219YfU : list2) {
int i = c1219YfU.l;
String str3 = c1219YfU.g;
String str4 = c1219YfU.h;
String str5 = c1219YfU.f8467o;
String str6 = c1219YfU.n;
String str7 = c1219YfU.j;
String str8 = c1219YfU.i;
String b_ = b_(c1219YfU.c);
C14957gcv.c((Object) b_, "");
if (b()) {
str = c1219YfU.f;
} else {
str = c1219YfU.a;
}
String str9 = str;
if (b()) {
str2 = c1219YfU.e;
} else {
str2 = c1219YfU.d;
}
arrayList.add(new C0656Ln(i, str3, str4, str5, str6, str7, str8, b_, str9, str2, c1219YfU.b));
}
return C14881gav.a((Iterable) arrayList, (Comparator) new LWm());
}
/* renamed from: o.sy$LWm */
/* loaded from: classes3.dex */
public static final class LWm<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer valueOf = Integer.valueOf(((C0656Ln) t).f);
Integer valueOf2 = Integer.valueOf(((C0656Ln) t2).f);
if (valueOf == valueOf2) {
return 0;
}
if (valueOf == null) {
return -1;
}
if (valueOf2 == null) {
return 1;
}
return valueOf.compareTo(valueOf2);
}
}
}