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

179 lines
5.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.RandomAccess;
import o.oZe;
/* loaded from: classes2.dex */
public final class KNd extends kOJ<String> implements dMQ, RandomAccess {
private final List<Object> d;
@Override // o.kOJ, o.oZe.tOB
public final /* bridge */ /* synthetic */ boolean a() {
return super.a();
}
@Override // o.kOJ, java.util.AbstractList, java.util.List
public final /* synthetic */ void add(int i, Object obj) {
c();
this.d.add(i, (String) obj);
((AbstractList) this).modCount++;
}
@Override // o.kOJ, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean add(Object obj) {
return super.add(obj);
}
@Override // o.kOJ, java.util.AbstractList, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean equals(Object obj) {
return super.equals(obj);
}
@Override // java.util.AbstractList, java.util.List
public final /* synthetic */ Object get(int i) {
Object obj = this.d.get(i);
if (obj instanceof String) {
return (String) obj;
}
if (obj instanceof jra) {
jra jraVar = (jra) obj;
String f = jraVar.f();
if (jraVar.e()) {
this.d.set(i, f);
}
return f;
}
byte[] bArr = (byte[]) obj;
String d = oZe.d(bArr);
if (oZe.e(bArr)) {
this.d.set(i, d);
}
return d;
}
@Override // o.kOJ, java.util.AbstractList, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ int hashCode() {
return super.hashCode();
}
@Override // o.kOJ, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean remove(Object obj) {
return super.remove(obj);
}
@Override // o.kOJ, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean removeAll(Collection collection) {
return super.removeAll(collection);
}
@Override // o.kOJ, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean retainAll(Collection collection) {
return super.retainAll(collection);
}
@Override // o.kOJ, java.util.AbstractList, java.util.List
public final /* synthetic */ Object set(int i, Object obj) {
c();
return b(this.d.set(i, (String) obj));
}
static {
new KNd().d();
}
public KNd() {
this(10);
}
public KNd(int i) {
this((ArrayList<Object>) new ArrayList(i));
}
private KNd(ArrayList<Object> arrayList) {
this.d = arrayList;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final int size() {
return this.d.size();
}
@Override // o.kOJ, java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean addAll(Collection<? extends String> collection) {
return addAll(size(), collection);
}
@Override // o.kOJ, java.util.AbstractList, java.util.List
public final boolean addAll(int i, Collection<? extends String> collection) {
c();
if (collection instanceof dMQ) {
collection = ((dMQ) collection).e();
}
boolean addAll = this.d.addAll(i, collection);
((AbstractList) this).modCount++;
return addAll;
}
@Override // o.kOJ, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public final void clear() {
c();
this.d.clear();
((AbstractList) this).modCount++;
}
@Override // o.dMQ
public final void a(jra jraVar) {
c();
this.d.add(jraVar);
((AbstractList) this).modCount++;
}
@Override // o.dMQ
public final Object d(int i) {
return this.d.get(i);
}
private static String b(Object obj) {
if (obj instanceof String) {
return (String) obj;
}
if (obj instanceof jra) {
return ((jra) obj).f();
}
return oZe.d((byte[]) obj);
}
@Override // o.dMQ
public final List<?> e() {
return Collections.unmodifiableList(this.d);
}
@Override // o.dMQ
public final dMQ b() {
return super.a() ? new yJI(this) : this;
}
@Override // o.oZe.tOB, o.oZe.jbe
public final /* synthetic */ oZe.tOB c(int i) {
if (i < size()) {
throw new IllegalArgumentException();
}
ArrayList arrayList = new ArrayList(i);
arrayList.addAll(this.d);
return new KNd((ArrayList<Object>) arrayList);
}
@Override // o.kOJ, java.util.AbstractList, java.util.List
public final /* synthetic */ Object remove(int i) {
c();
Object remove = this.d.remove(i);
((AbstractList) this).modCount++;
return b(remove);
}
}