177 lines
5.9 KiB
Java
177 lines
5.9 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
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 zzuw extends zzsq<String> implements zzux, RandomAccess {
|
||
|
private static final zzuw zzbqb;
|
||
|
private static final zzux zzbqc;
|
||
|
private final List<Object> zzbqd;
|
||
|
|
||
|
public zzuw() {
|
||
|
this(10);
|
||
|
}
|
||
|
|
||
|
public zzuw(int i) {
|
||
|
this((ArrayList<Object>) new ArrayList(i));
|
||
|
}
|
||
|
|
||
|
private zzuw(ArrayList<Object> arrayList) {
|
||
|
this.zzbqd = arrayList;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public final int size() {
|
||
|
return this.zzbqd.size();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, 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.firebase_ml.zzsq, java.util.AbstractList, java.util.List
|
||
|
public final boolean addAll(int i, Collection<? extends String> collection) {
|
||
|
zzpu();
|
||
|
if (collection instanceof zzux) {
|
||
|
collection = ((zzux) collection).zzrv();
|
||
|
}
|
||
|
boolean addAll = this.zzbqd.addAll(i, collection);
|
||
|
this.modCount++;
|
||
|
return addAll;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public final void clear() {
|
||
|
zzpu();
|
||
|
this.zzbqd.clear();
|
||
|
this.modCount++;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzux
|
||
|
public final void zzc(zzsw zzswVar) {
|
||
|
zzpu();
|
||
|
this.zzbqd.add(zzswVar);
|
||
|
this.modCount++;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzux
|
||
|
public final Object getRaw(int i) {
|
||
|
return this.zzbqd.get(i);
|
||
|
}
|
||
|
|
||
|
private static String zzs(Object obj) {
|
||
|
if (obj instanceof String) {
|
||
|
return (String) obj;
|
||
|
}
|
||
|
if (obj instanceof zzsw) {
|
||
|
return ((zzsw) obj).zzpx();
|
||
|
}
|
||
|
return zzug.zzj((byte[]) obj);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzux
|
||
|
public final List<?> zzrv() {
|
||
|
return Collections.unmodifiableList(this.zzbqd);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzux
|
||
|
public final zzux zzrw() {
|
||
|
return zzps() ? new zzwz(this) : this;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.AbstractList, java.util.List
|
||
|
public final /* synthetic */ Object set(int i, Object obj) {
|
||
|
zzpu();
|
||
|
return zzs(this.zzbqd.set(i, (String) obj));
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, 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.firebase_ml.zzsq, 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.firebase_ml.zzsq, 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.firebase_ml.zzsq, java.util.AbstractList, java.util.List
|
||
|
public final /* synthetic */ Object remove(int i) {
|
||
|
zzpu();
|
||
|
Object remove = this.zzbqd.remove(i);
|
||
|
this.modCount++;
|
||
|
return zzs(remove);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, com.google.android.gms.internal.firebase_ml.zzun
|
||
|
public final /* bridge */ /* synthetic */ boolean zzps() {
|
||
|
return super.zzps();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.AbstractList, java.util.List
|
||
|
public final /* synthetic */ void add(int i, Object obj) {
|
||
|
zzpu();
|
||
|
this.zzbqd.add(i, (String) obj);
|
||
|
this.modCount++;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.AbstractList, java.util.Collection, java.util.List
|
||
|
public final /* bridge */ /* synthetic */ int hashCode() {
|
||
|
return super.hashCode();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzsq, 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.firebase_ml.zzun
|
||
|
public final /* synthetic */ zzun zzck(int i) {
|
||
|
if (i < size()) {
|
||
|
throw new IllegalArgumentException();
|
||
|
}
|
||
|
ArrayList arrayList = new ArrayList(i);
|
||
|
arrayList.addAll(this.zzbqd);
|
||
|
return new zzuw((ArrayList<Object>) arrayList);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.List
|
||
|
public final /* synthetic */ Object get(int i) {
|
||
|
Object obj = this.zzbqd.get(i);
|
||
|
if (obj instanceof String) {
|
||
|
return (String) obj;
|
||
|
}
|
||
|
if (obj instanceof zzsw) {
|
||
|
zzsw zzswVar = (zzsw) obj;
|
||
|
String zzpx = zzswVar.zzpx();
|
||
|
if (zzswVar.zzpy()) {
|
||
|
this.zzbqd.set(i, zzpx);
|
||
|
}
|
||
|
return zzpx;
|
||
|
}
|
||
|
byte[] bArr = (byte[]) obj;
|
||
|
String zzj = zzug.zzj(bArr);
|
||
|
if (zzug.zzi(bArr)) {
|
||
|
this.zzbqd.set(i, zzj);
|
||
|
}
|
||
|
return zzj;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
zzuw zzuwVar = new zzuw();
|
||
|
zzbqb = zzuwVar;
|
||
|
zzuwVar.zzpt();
|
||
|
zzbqc = zzuwVar;
|
||
|
}
|
||
|
}
|