what-the-bank/sources/com/google/android/gms/internal/vision/zzht.java

72 lines
1.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.vision;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes2.dex */
final class zzht<E> extends zzef<E> {
private static final zzht<Object> zzzz;
private final List<E> zzym;
zzht() {
this(new ArrayList(10));
}
private zzht(List<E> list) {
this.zzym = list;
}
@Override // com.google.android.gms.internal.vision.zzef, java.util.AbstractList, java.util.List
public final void add(int i, E e) {
zzcj();
this.zzym.add(i, e);
this.modCount++;
}
@Override // java.util.AbstractList, java.util.List
public final E get(int i) {
return this.zzym.get(i);
}
@Override // com.google.android.gms.internal.vision.zzef, java.util.AbstractList, java.util.List
public final E remove(int i) {
zzcj();
E remove = this.zzym.remove(i);
this.modCount++;
return remove;
}
@Override // com.google.android.gms.internal.vision.zzef, java.util.AbstractList, java.util.List
public final E set(int i, E e) {
zzcj();
E e2 = this.zzym.set(i, e);
this.modCount++;
return e2;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final int size() {
return this.zzym.size();
}
@Override // com.google.android.gms.internal.vision.zzge
public final /* synthetic */ zzge zzah(int i) {
if (i < size()) {
throw new IllegalArgumentException();
}
ArrayList arrayList = new ArrayList(i);
arrayList.addAll(this.zzym);
return new zzht(arrayList);
}
static {
zzht<Object> zzhtVar = new zzht<>();
zzzz = zzhtVar;
zzhtVar.zzci();
}
public static <E> zzht<E> zzgm() {
return (zzht<E>) zzzz;
}
}