what-the-bank/sources/com/pingan/ai/n.java

118 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.pingan.ai;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes3.dex */
public final class n {
public int[] a;
public List<Integer> b;
public boolean c;
public n() {
d();
}
public final void a(int i) {
d();
if (i == 2003) {
int[] iArr = this.a;
iArr[0] = iArr[0] + 1;
return;
}
if (i == 2019) {
int[] iArr2 = this.a;
iArr2[1] = iArr2[1] + 1;
return;
}
if (i == 2020) {
int[] iArr3 = this.a;
iArr3[2] = iArr3[2] + 1;
return;
}
if (i == 2018) {
int[] iArr4 = this.a;
iArr4[3] = iArr4[3] + 1;
return;
}
if (i == 3003) {
int[] iArr5 = this.a;
iArr5[4] = iArr5[4] + 1;
} else if (i == 3001) {
int[] iArr6 = this.a;
iArr6[5] = iArr6[5] + 1;
} else if (i == 3004) {
int[] iArr7 = this.a;
iArr7[6] = iArr7[6] + 1;
}
}
public final String c() {
d();
StringBuilder sb = new StringBuilder("2003-");
sb.append(this.a[0]);
sb.append("&2019-");
sb.append(this.a[1]);
sb.append("&2020-");
sb.append(this.a[2]);
sb.append("&2018-");
sb.append(this.a[3]);
sb.append("&3003-");
sb.append(this.a[4]);
sb.append("&3001-");
sb.append(this.a[5]);
sb.append("&3004-");
sb.append(this.a[6]);
return sb.toString();
}
public final String b() {
if (this.c) {
return "scene3";
}
List<Integer> list = this.b;
return (list == null || list.isEmpty()) ? "scene1" : "scene2";
}
public final void d() {
if (this.a == null) {
this.a = new int[10];
for (int i = 0; i < 10; i++) {
this.a[i] = 0;
}
}
}
public final void e() {
this.a = null;
this.c = false;
List<Integer> list = this.b;
if (list != null) {
list.clear();
}
}
public final void a(List<Integer> list) {
if (this.b == null) {
this.b = new ArrayList();
}
this.b.clear();
if (list == null || list.isEmpty()) {
return;
}
this.b.addAll(list);
}
public final int a() {
List<Integer> list = this.b;
if (list == null) {
return 0;
}
return list.size() + (this.c ? 1 : 0);
}
public final void a(boolean z) {
this.c = z;
}
}