what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzadr.java

148 lines
4.5 KiB
Java

package com.google.android.gms.internal.p002firebaseauthapi;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.RandomAccess;
/* loaded from: classes2.dex */
public final class zzadr extends zzabn implements RandomAccess, zzads {
public static final zzads zza;
private static final zzadr zzb;
private final List zzc;
static {
zzadr zzadrVar = new zzadr(10);
zzb = zzadrVar;
zzadrVar.zzb();
zza = zzadrVar;
}
public zzadr() {
this(10);
}
private static String zzj(Object obj) {
if (obj instanceof String) {
return (String) obj;
}
if (obj instanceof zzacc) {
return ((zzacc) obj).zzr(zzadl.zzb);
}
return zzadl.zzg((byte[]) obj);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzabn, java.util.AbstractList, java.util.List
public final /* synthetic */ void add(int i, Object obj) {
zza();
this.zzc.add(i, (String) obj);
this.modCount++;
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzabn, java.util.AbstractList, java.util.List
public final boolean addAll(int i, Collection collection) {
zza();
if (collection instanceof zzads) {
collection = ((zzads) collection).zzh();
}
boolean addAll = this.zzc.addAll(i, collection);
this.modCount++;
return addAll;
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzabn, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public final void clear() {
zza();
this.zzc.clear();
this.modCount++;
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzabn, java.util.AbstractList, java.util.List
public final /* synthetic */ Object remove(int i) {
zza();
Object remove = this.zzc.remove(i);
this.modCount++;
return zzj(remove);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzabn, java.util.AbstractList, java.util.List
public final /* synthetic */ Object set(int i, Object obj) {
zza();
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.p002firebaseauthapi.zzadk
public final /* synthetic */ zzadk zzd(int i) {
if (i < size()) {
throw new IllegalArgumentException();
}
ArrayList arrayList = new ArrayList(i);
arrayList.addAll(this.zzc);
return new zzadr(arrayList);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzads
public final zzads zze() {
return zzc() ? new zzafs(this) : this;
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzads
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 zzacc) {
zzacc zzaccVar = (zzacc) obj;
String zzr = zzaccVar.zzr(zzadl.zzb);
if (zzaccVar.zzk()) {
this.zzc.set(i, zzr);
}
return zzr;
}
byte[] bArr = (byte[]) obj;
String zzg = zzadl.zzg(bArr);
if (zzadl.zzh(bArr)) {
this.zzc.set(i, zzg);
}
return zzg;
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzads
public final List zzh() {
return Collections.unmodifiableList(this.zzc);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzads
public final void zzi(zzacc zzaccVar) {
zza();
this.zzc.add(zzaccVar);
this.modCount++;
}
public zzadr(int i) {
this.zzc = new ArrayList(i);
}
private zzadr(ArrayList arrayList) {
this.zzc = arrayList;
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzabn, java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean addAll(Collection collection) {
return addAll(size(), collection);
}
}