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

187 lines
5.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import o.oZe;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public abstract class QIp {
private static final QIp c;
private static final QIp d;
/* JADX INFO: Access modifiers changed from: package-private */
public abstract void a(Object obj, long j);
/* JADX INFO: Access modifiers changed from: package-private */
public abstract <L> void a(Object obj, Object obj2, long j);
/* JADX INFO: Access modifiers changed from: package-private */
public abstract <L> List<L> d(Object obj, long j);
/* synthetic */ QIp(byte b) {
this();
}
private QIp() {
}
static {
byte b = 0;
c = new IeS(b);
d = new Sts(b);
}
/* loaded from: classes2.dex */
static final class IeS extends QIp {
private static final Class<?> e = Collections.unmodifiableList(Collections.emptyList()).getClass();
private IeS() {
super((byte) 0);
}
/* synthetic */ IeS(byte b) {
this();
}
@Override // o.QIp
final <L> List<L> d(Object obj, long j) {
return d(obj, j, 10);
}
@Override // o.QIp
final void a(Object obj, long j) {
Object unmodifiableList;
List list = (List) C1609aJC.g(obj, j);
if (list instanceof dMQ) {
unmodifiableList = ((dMQ) list).b();
} else {
if (e.isAssignableFrom(list.getClass())) {
return;
}
if ((list instanceof vjv) && (list instanceof oZe.tOB)) {
oZe.tOB tob = (oZe.tOB) list;
if (tob.a()) {
tob.d();
return;
}
return;
}
unmodifiableList = Collections.unmodifiableList(list);
}
C1609aJC.b(obj, j, unmodifiableList);
}
private static <L> List<L> d(Object obj, long j, int i) {
AbstractList kNd;
List<L> arrayList;
List<L> list = (List) C1609aJC.g(obj, j);
if (list.isEmpty()) {
if (list instanceof dMQ) {
arrayList = new KNd(i);
} else if ((list instanceof vjv) && (list instanceof oZe.tOB)) {
arrayList = ((oZe.tOB) list).c(i);
} else {
arrayList = new ArrayList<>(i);
}
C1609aJC.b(obj, j, arrayList);
return arrayList;
}
if (e.isAssignableFrom(list.getClass())) {
kNd = new ArrayList(list.size() + i);
kNd.addAll(list);
C1609aJC.b(obj, j, kNd);
} else if (list instanceof yJI) {
kNd = new KNd(list.size() + i);
kNd.addAll((yJI) list);
C1609aJC.b(obj, j, kNd);
} else {
if (!(list instanceof vjv) || !(list instanceof oZe.tOB)) {
return list;
}
oZe.tOB tob = (oZe.tOB) list;
if (tob.a()) {
return list;
}
oZe.tOB c = tob.c(list.size() + i);
C1609aJC.b(obj, j, c);
return c;
}
return kNd;
}
@Override // o.QIp
final <E> void a(Object obj, Object obj2, long j) {
List list = (List) C1609aJC.g(obj2, j);
List d = d(obj, j, list.size());
int size = d.size();
int size2 = list.size();
if (size > 0 && size2 > 0) {
d.addAll(list);
}
if (size > 0) {
list = d;
}
C1609aJC.b(obj, j, list);
}
}
/* loaded from: classes2.dex */
static final class Sts extends QIp {
private Sts() {
super((byte) 0);
}
/* synthetic */ Sts(byte b) {
this();
}
@Override // o.QIp
final void a(Object obj, long j) {
((oZe.tOB) C1609aJC.g(obj, j)).d();
}
@Override // o.QIp
final <E> void a(Object obj, Object obj2, long j) {
oZe.tOB tob = (oZe.tOB) C1609aJC.g(obj, j);
oZe.tOB tob2 = (oZe.tOB) C1609aJC.g(obj2, j);
int size = tob.size();
int size2 = tob2.size();
if (size > 0 && size2 > 0) {
if (!tob.a()) {
tob = tob.c(size2 + size);
}
tob.addAll(tob2);
}
if (size > 0) {
tob2 = tob;
}
C1609aJC.b(obj, j, tob2);
}
@Override // o.QIp
final <L> List<L> d(Object obj, long j) {
oZe.tOB tob = (oZe.tOB) C1609aJC.g(obj, j);
if (tob.a()) {
return tob;
}
int size = tob.size();
oZe.tOB c = tob.c(size == 0 ? 10 : size << 1);
C1609aJC.b(obj, j, c);
return c;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static QIp b() {
return d;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static QIp e() {
return c;
}
}