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

72 lines
2.3 KiB
Java
Raw 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.domain.entity.mwpartner.EntityMappingException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import o.C15715hv;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.ne, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16346ne extends C16157lj {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C16346ne(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
}
public final List<String> a(List<String> list, boolean z) {
ArrayList arrayList = new ArrayList();
String string = this.e.getString(C15715hv.tOB.select_end_date);
C14957gcv.c((Object) string, "");
arrayList.add(string);
if (z) {
if (list != null) {
List<String> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
OffsetDateTime parse = OffsetDateTime.parse((String) it.next());
C14957gcv.c(parse, "");
arrayList2.add(Boolean.valueOf(arrayList.add(l(parse))));
}
}
} else if (list != null) {
arrayList.addAll(list);
}
return arrayList;
}
public final String l(OffsetDateTime offsetDateTime) {
String VL_ = cXG.VL_(this.e, "dd MMM yyyy", offsetDateTime);
String str = VL_;
if (!(str == null || gdZ.d((CharSequence) str))) {
C14957gcv.c((Object) VL_, "");
return VL_;
}
throw new EntityMappingException("DateTime must not be null or empty");
}
/* renamed from: o.ne$IeS */
/* loaded from: classes3.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
static {
new IeS((byte) 0);
}
}