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

164 lines
5.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.clearcut;
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 zzcw extends zzav<String> implements zzcx, RandomAccess {
private static final zzcw zzlq;
private static final zzcx zzlr;
private final List<Object> zzls;
@Override // com.google.android.gms.internal.clearcut.zzav, com.google.android.gms.internal.clearcut.zzcn
public final /* bridge */ /* synthetic */ boolean zzu() {
return super.zzu();
}
@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 zzcw((ArrayList<Object>) arrayList);
}
@Override // com.google.android.gms.internal.clearcut.zzcx
public final zzcx zzbu() {
return zzu() ? new zzfa(this) : this;
}
@Override // com.google.android.gms.internal.clearcut.zzcx
public final List<?> zzbt() {
return Collections.unmodifiableList(this.zzls);
}
@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 /* synthetic */ Object set(int i, Object obj) {
zzw();
return zze(this.zzls.set(i, (String) obj));
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean retainAll(Collection collection) {
return super.retainAll(collection);
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean removeAll(Collection collection) {
return super.removeAll(collection);
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractCollection, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean remove(Object obj) {
return super.remove(obj);
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.List
public final /* synthetic */ Object remove(int i) {
zzw();
Object remove = this.zzls.remove(i);
this.modCount++;
return zze(remove);
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ int hashCode() {
return super.hashCode();
}
@Override // com.google.android.gms.internal.clearcut.zzcx
public final Object getRaw(int i) {
return this.zzls.get(i);
}
@Override // java.util.AbstractList, java.util.List
public final /* synthetic */ Object get(int i) {
Object obj = this.zzls.get(i);
if (obj instanceof String) {
return (String) obj;
}
if (obj instanceof zzbb) {
zzbb zzbbVar = (zzbb) obj;
String zzz = zzbbVar.zzz();
if (zzbbVar.zzaa()) {
this.zzls.set(i, zzz);
}
return zzz;
}
byte[] bArr = (byte[]) obj;
String zzf = zzci.zzf(bArr);
if (zzci.zze(bArr)) {
this.zzls.set(i, zzf);
}
return zzf;
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.Collection, java.util.List
public final /* bridge */ /* synthetic */ boolean equals(Object obj) {
return super.equals(obj);
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public final void clear() {
zzw();
this.zzls.clear();
this.modCount++;
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean addAll(Collection<? extends String> collection) {
return addAll(size(), collection);
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.List
public final boolean addAll(int i, Collection<? extends String> collection) {
zzw();
if (collection instanceof zzcx) {
collection = ((zzcx) collection).zzbt();
}
boolean addAll = this.zzls.addAll(i, collection);
this.modCount++;
return addAll;
}
@Override // com.google.android.gms.internal.clearcut.zzav, java.util.AbstractList, java.util.List
public final /* synthetic */ void add(int i, Object obj) {
zzw();
this.zzls.add(i, (String) obj);
this.modCount++;
}
private static String zze(Object obj) {
return obj instanceof String ? (String) obj : obj instanceof zzbb ? ((zzbb) obj).zzz() : zzci.zzf((byte[]) obj);
}
private zzcw(ArrayList<Object> arrayList) {
this.zzls = arrayList;
}
public zzcw(int i) {
this((ArrayList<Object>) new ArrayList(i));
}
public zzcw() {
this(10);
}
static {
zzcw zzcwVar = new zzcw();
zzlq = zzcwVar;
zzcwVar.zzv();
zzlr = zzcwVar;
}
}