what-the-bank/sources/com/google/android/gms/internal/measurement/zzkl.java

148 lines
4.5 KiB
Java

package com.google.android.gms.internal.measurement;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.RandomAccess;
/* loaded from: classes.dex */
public final class zzkl extends zzii<String> implements RandomAccess, zzkm {
public static final zzkm zza;
private static final zzkl zzb;
private final List<Object> zzc;
static {
zzkl zzklVar = new zzkl(10);
zzb = zzklVar;
zzklVar.zzb();
zza = zzklVar;
}
public zzkl() {
this(10);
}
private static String zzj(Object obj) {
if (obj instanceof String) {
return (String) obj;
}
if (obj instanceof zzix) {
return ((zzix) obj).zzn(zzkf.zzb);
}
return zzkf.zzh((byte[]) obj);
}
@Override // com.google.android.gms.internal.measurement.zzii, java.util.AbstractList, java.util.List
public final /* synthetic */ void add(int i, Object obj) {
zzbM();
this.zzc.add(i, (String) obj);
this.modCount++;
}
@Override // com.google.android.gms.internal.measurement.zzii, java.util.AbstractList, java.util.List
public final boolean addAll(int i, Collection<? extends String> collection) {
zzbM();
if (collection instanceof zzkm) {
collection = ((zzkm) collection).zzh();
}
boolean addAll = this.zzc.addAll(i, collection);
this.modCount++;
return addAll;
}
@Override // com.google.android.gms.internal.measurement.zzii, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public final void clear() {
zzbM();
this.zzc.clear();
this.modCount++;
}
@Override // com.google.android.gms.internal.measurement.zzii, java.util.AbstractList, java.util.List
public final /* synthetic */ Object remove(int i) {
zzbM();
Object remove = this.zzc.remove(i);
this.modCount++;
return zzj(remove);
}
@Override // com.google.android.gms.internal.measurement.zzii, java.util.AbstractList, java.util.List
public final /* synthetic */ Object set(int i, Object obj) {
zzbM();
return zzj(this.zzc.set(i, (String) obj));
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final int size() {
return this.zzc.size();
}
@Override // com.google.android.gms.internal.measurement.zzke
public final /* synthetic */ zzke zzd(int i) {
if (i < size()) {
throw new IllegalArgumentException();
}
ArrayList arrayList = new ArrayList(i);
arrayList.addAll(this.zzc);
return new zzkl((ArrayList<Object>) arrayList);
}
@Override // com.google.android.gms.internal.measurement.zzkm
public final zzkm zze() {
return zzc() ? new zzmg(this) : this;
}
@Override // com.google.android.gms.internal.measurement.zzkm
public final Object zzf(int i) {
return this.zzc.get(i);
}
@Override // java.util.AbstractList, java.util.List
/* renamed from: zzg, reason: merged with bridge method [inline-methods] */
public final String get(int i) {
Object obj = this.zzc.get(i);
if (obj instanceof String) {
return (String) obj;
}
if (obj instanceof zzix) {
zzix zzixVar = (zzix) obj;
String zzn = zzixVar.zzn(zzkf.zzb);
if (zzixVar.zzi()) {
this.zzc.set(i, zzn);
}
return zzn;
}
byte[] bArr = (byte[]) obj;
String zzh = zzkf.zzh(bArr);
if (zzkf.zzi(bArr)) {
this.zzc.set(i, zzh);
}
return zzh;
}
@Override // com.google.android.gms.internal.measurement.zzkm
public final List<?> zzh() {
return Collections.unmodifiableList(this.zzc);
}
@Override // com.google.android.gms.internal.measurement.zzkm
public final void zzi(zzix zzixVar) {
zzbM();
this.zzc.add(zzixVar);
this.modCount++;
}
public zzkl(int i) {
this.zzc = new ArrayList(i);
}
private zzkl(ArrayList<Object> arrayList) {
this.zzc = arrayList;
}
@Override // com.google.android.gms.internal.measurement.zzii, java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean addAll(Collection<? extends String> collection) {
return addAll(size(), collection);
}
}