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

44 lines
1.0 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes3.dex */
public class EZj {
private final hWR a;
@InterfaceC13391fZD
public EZj(hWR hwr) {
C14957gcv.e(hwr, "");
this.a = hwr;
}
public final void b(Alf alf) {
Object obj;
C14957gcv.e(alf, "");
List<Alf> e = this.a.e();
C14957gcv.e(e, "");
ArrayList arrayList = new ArrayList(e);
Iterator it = arrayList.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
} else {
obj = it.next();
if (C14957gcv.b((Object) ((Alf) obj).b(), (Object) alf.b())) {
break;
}
}
}
Alf alf2 = (Alf) obj;
if (alf2 != null) {
arrayList.set(arrayList.indexOf(alf2), alf);
this.a.b(arrayList);
} else {
this.a.e(alf);
}
}
}