what-the-bank/sources/com/google/android/gms/internal/clearcut/zzeb.java

72 lines
1.8 KiB
Java

package com.google.android.gms.internal.clearcut;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes2.dex */
final class zzeb<E> extends zzav<E> {
private static final zzeb<Object> zznf;
private final List<E> zzls;
@Override // com.google.android.gms.internal.clearcut.zzcn
public final /* synthetic */ zzcn zzi(int i) {
if (i < size()) {
throw new IllegalArgumentException();
}
ArrayList arrayList = new ArrayList(i);
arrayList.addAll(this.zzls);
return new zzeb(arrayList);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final int size() {
return this.zzls.size();
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.List
public final E set(int i, E e) {
zzw();
E e2 = this.zzls.set(i, e);
this.modCount++;
return e2;
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.List
public final E remove(int i) {
zzw();
E remove = this.zzls.remove(i);
this.modCount++;
return remove;
}
@Override // java.util.AbstractList, java.util.List
public final E get(int i) {
return this.zzls.get(i);
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.List
public final void add(int i, E e) {
zzw();
this.zzls.add(i, e);
this.modCount++;
}
public static <E> zzeb<E> zzcn() {
return (zzeb<E>) zznf;
}
private zzeb(List<E> list) {
this.zzls = list;
}
zzeb() {
this(new ArrayList(10));
}
static {
zzeb<Object> zzebVar = new zzeb<>();
zznf = zzebVar;
zzebVar.zzv();
}
}