what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzwc.java

72 lines
1.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_ml;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes2.dex */
final class zzwc<E> extends zzsq<E> {
private static final zzwc<Object> zzbrt;
private final List<E> zzbqd;
zzwc() {
this(new ArrayList(10));
}
private zzwc(List<E> list) {
this.zzbqd = list;
}
@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.AbstractList, java.util.List
public final void add(int i, E e) {
zzpu();
this.zzbqd.add(i, e);
this.modCount++;
}
@Override // java.util.AbstractList, java.util.List
public final E get(int i) {
return this.zzbqd.get(i);
}
@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.AbstractList, java.util.List
public final E remove(int i) {
zzpu();
E remove = this.zzbqd.remove(i);
this.modCount++;
return remove;
}
@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.AbstractList, java.util.List
public final E set(int i, E e) {
zzpu();
E e2 = this.zzbqd.set(i, e);
this.modCount++;
return e2;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final int size() {
return this.zzbqd.size();
}
@Override // com.google.android.gms.internal.firebase_ml.zzun
public final /* synthetic */ zzun zzck(int i) {
if (i < size()) {
throw new IllegalArgumentException();
}
ArrayList arrayList = new ArrayList(i);
arrayList.addAll(this.zzbqd);
return new zzwc(arrayList);
}
static {
zzwc<Object> zzwcVar = new zzwc<>(new ArrayList(0));
zzbrt = zzwcVar;
zzwcVar.zzpt();
}
public static <E> zzwc<E> zzsp() {
return (zzwc<E>) zzbrt;
}
}