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

174 lines
5.1 KiB
Java

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.MTP;
/* loaded from: classes2.dex */
public final class DMn extends AbstractC15969jyR<String> implements VWY, RandomAccess {
private final List<Object> d;
@Override // o.AbstractC15969jyR, java.util.AbstractList, java.util.List
public final /* synthetic */ void add(int i, Object obj) {
d();
this.d.add(i, (String) obj);
((AbstractList) this).modCount++;
}
@Override // o.AbstractC15969jyR, o.MTP.RVV
public final /* bridge */ /* synthetic */ boolean e() {
return super.e();
}
@Override // o.AbstractC15969jyR, 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 QwV) {
QwV qwV = (QwV) obj;
String i2 = qwV.i();
if (qwV.d()) {
this.d.set(i, i2);
}
return i2;
}
byte[] bArr = (byte[]) obj;
String b = MTP.b(bArr);
if (MTP.c(bArr)) {
this.d.set(i, b);
}
return b;
}
@Override // o.AbstractC15969jyR, java.util.AbstractList, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ int hashCode() {
return super.hashCode();
}
@Override // o.AbstractC15969jyR, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean remove(Object obj) {
return super.remove(obj);
}
@Override // o.AbstractC15969jyR, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean removeAll(Collection collection) {
return super.removeAll(collection);
}
@Override // o.AbstractC15969jyR, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean retainAll(Collection collection) {
return super.retainAll(collection);
}
@Override // o.AbstractC15969jyR, java.util.AbstractList, java.util.List
public final /* synthetic */ Object set(int i, Object obj) {
d();
return d(this.d.set(i, (String) obj));
}
static {
new DMn().a();
}
public DMn() {
this(10);
}
public DMn(int i) {
this((ArrayList<Object>) new ArrayList(i));
}
private DMn(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.AbstractC15969jyR, java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean addAll(Collection<? extends String> collection) {
return addAll(size(), collection);
}
@Override // o.AbstractC15969jyR, java.util.AbstractList, java.util.List
public final boolean addAll(int i, Collection<? extends String> collection) {
d();
if (collection instanceof VWY) {
collection = ((VWY) collection).b();
}
boolean addAll = this.d.addAll(i, collection);
((AbstractList) this).modCount++;
return addAll;
}
@Override // o.AbstractC15969jyR, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public final void clear() {
d();
this.d.clear();
((AbstractList) this).modCount++;
}
@Override // o.VWY
public final void c(QwV qwV) {
d();
this.d.add(qwV);
((AbstractList) this).modCount++;
}
@Override // o.VWY
public final Object c(int i) {
return this.d.get(i);
}
private static String d(Object obj) {
if (obj instanceof String) {
return (String) obj;
}
if (obj instanceof QwV) {
return ((QwV) obj).i();
}
return MTP.b((byte[]) obj);
}
@Override // o.VWY
public final List<?> b() {
return Collections.unmodifiableList(this.d);
}
@Override // o.VWY
public final VWY c() {
return super.e() ? new xls(this) : this;
}
@Override // o.MTP.RVV
public final /* synthetic */ MTP.RVV b(int i) {
if (i < size()) {
throw new IllegalArgumentException();
}
ArrayList arrayList = new ArrayList(i);
arrayList.addAll(this.d);
return new DMn((ArrayList<Object>) arrayList);
}
@Override // o.AbstractC15969jyR, java.util.AbstractList, java.util.List
public final /* synthetic */ Object remove(int i) {
d();
Object remove = this.d.remove(i);
((AbstractList) this).modCount++;
return d(remove);
}
}