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

178 lines
5.1 KiB
Java

package o;
import java.text.NumberFormat;
import java.util.Locale;
import o.ZI;
/* renamed from: o.avD */
/* loaded from: classes4.dex */
public abstract class AbstractC3310avD extends ZI<InterfaceC9056dcX> {
private int a;
private int b;
private final C16318nS e;
/* JADX INFO: Access modifiers changed from: protected */
public abstract Long d();
public AbstractC3310avD(C16903sI c16903sI, C16318nS c16318nS) {
super(c16903sI);
this.b = 1;
this.e = c16318nS;
}
private void e(int i) {
Long valueOf = Long.valueOf(d().longValue() * i);
ZI.IeS ieS = new ZI.IeS() { // from class: o.avI
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).c(false);
}
};
if (this.f != 0) {
ieS.e(this.f);
}
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.avK
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).a(false);
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.avL
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).d();
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
ZI.IeS ieS4 = new ZI.IeS() { // from class: o.avM
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).d(false);
}
};
if (this.f != 0) {
ieS4.e(this.f);
}
if (this.a >= valueOf.longValue() && i <= 9999 && i > 0) {
ZI.IeS ieS5 = new ZI.IeS() { // from class: o.avN
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).a(true);
}
};
if (this.f != 0) {
ieS5.e(this.f);
}
}
if (this.a >= valueOf.longValue()) {
ZI.IeS ieS6 = new ZI.IeS() { // from class: o.avO
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).a();
}
};
if (this.f != 0) {
ieS6.e(this.f);
}
}
if (this.a >= valueOf.longValue() && i < 9999) {
ZI.IeS ieS7 = new ZI.IeS() { // from class: o.avP
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).c(true);
}
};
if (this.f != 0) {
ieS7.e(this.f);
}
}
if (i > 1) {
ZI.IeS ieS8 = new ZI.IeS() { // from class: o.avQ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).d(true);
}
};
if (this.f != 0) {
ieS8.e(this.f);
}
}
}
public final void a(boolean z, C0471Hh c0471Hh) {
ZI.IeS ieS = new ZI.IeS(this.e.e(this.b, z, c0471Hh)) { // from class: o.avJ
private C0477Hl d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).c(this.d);
}
{
this.d = r1;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
public final void b() {
C3309avC c3309avC = new C3309avC(this, NumberFormat.getInstance(Locale.getDefault()).format(d()));
if (this.f != 0) {
c3309avC.e(this.f);
}
}
public final void f() {
int i = this.b;
if (i > 1) {
this.b = i - 1;
C3309avC c3309avC = new C3309avC(this, NumberFormat.getInstance(Locale.getDefault()).format(d()));
if (this.f != 0) {
c3309avC.e(this.f);
}
}
e(this.b);
}
public final void h() {
this.b++;
C3309avC c3309avC = new C3309avC(this, NumberFormat.getInstance(Locale.getDefault()).format(d()));
if (this.f != 0) {
c3309avC.e(this.f);
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.avH
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9056dcX) obj).d(true);
}
};
if (this.f != 0) {
ieS.e(this.f);
}
e(this.b);
}
public final void d(int i) {
if (this.b != i) {
this.b = i;
C3309avC c3309avC = new C3309avC(this, NumberFormat.getInstance(Locale.getDefault()).format(d()));
if (this.f != 0) {
c3309avC.e(this.f);
}
e(i);
}
}
public void e(C0471Hh c0471Hh) {
this.a = Integer.parseInt(c0471Hh.l.replace(",", ""));
e(this.b);
}
}