what-the-bank/sources/com/google/android/gms/internal/gtm/zzoh.java

141 lines
4.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
import com.google.android.gms.common.internal.Preconditions;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/* loaded from: classes.dex */
public final class zzoh extends zzoa<List<zzoa<?>>> {
private static final Map<String, zzgz> zzaug;
private final ArrayList<zzoa<?>> zzaup;
public zzoh(List<zzoa<?>> list) {
Preconditions.checkNotNull(list);
this.zzaup = new ArrayList<>(list);
}
public final void zza(int i, zzoa<?> zzoaVar) {
if (i < 0) {
throw new IndexOutOfBoundsException();
}
if (i >= this.zzaup.size()) {
setSize(i + 1);
}
this.zzaup.set(i, zzoaVar);
}
public final void setSize(int i) {
Preconditions.checkArgument(i >= 0, "Invalid array length");
if (this.zzaup.size() == i) {
return;
}
if (this.zzaup.size() < i) {
this.zzaup.ensureCapacity(i);
for (int size = this.zzaup.size(); size < i; size++) {
this.zzaup.add(null);
}
return;
}
ArrayList<zzoa<?>> arrayList = this.zzaup;
arrayList.subList(i, arrayList.size()).clear();
}
public final zzoa<?> zzac(int i) {
if (i < 0 || i >= this.zzaup.size()) {
return zzog.zzaum;
}
zzoa<?> zzoaVar = this.zzaup.get(i);
return zzoaVar == null ? zzog.zzaum : zzoaVar;
}
public final boolean zzad(int i) {
return i >= 0 && i < this.zzaup.size() && this.zzaup.get(i) != null;
}
@Override // com.google.android.gms.internal.gtm.zzoa
public final Iterator<zzoa<?>> zzmf() {
return new zzoj(this, new zzoi(this), super.zzmg());
}
@Override // com.google.android.gms.internal.gtm.zzoa
public final boolean zzcp(String str) {
return zzaug.containsKey(str);
}
@Override // com.google.android.gms.internal.gtm.zzoa
public final zzgz zzcq(String str) {
if (zzcp(str)) {
return zzaug.get(str);
}
StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 51);
sb.append("Native Method ");
sb.append(str);
sb.append(" is not defined for type ListWrapper.");
throw new IllegalStateException(sb.toString());
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof zzoh) {
List<zzoa<?>> value = ((zzoh) obj).value();
if (this.zzaup.size() == value.size()) {
boolean z = true;
for (int i = 0; i < this.zzaup.size(); i++) {
if (this.zzaup.get(i) == null) {
z = value.get(i) == null;
} else {
z = this.zzaup.get(i).equals(value.get(i));
}
if (!z) {
break;
}
}
return z;
}
}
return false;
}
@Override // com.google.android.gms.internal.gtm.zzoa
public final String toString() {
return this.zzaup.toString();
}
static {
HashMap hashMap = new HashMap();
hashMap.put("concat", new zzhc());
hashMap.put("every", new zzhd());
hashMap.put("filter", new zzhe());
hashMap.put("forEach", new zzhf());
hashMap.put("indexOf", new zzhg());
hashMap.put("hasOwnProperty", zzja.zzark);
hashMap.put("join", new zzhh());
hashMap.put("lastIndexOf", new zzhi());
hashMap.put("map", new zzhj());
hashMap.put("pop", new zzhk());
hashMap.put("push", new zzhl());
hashMap.put("reduce", new zzhm());
hashMap.put("reduceRight", new zzhn());
hashMap.put("reverse", new zzho());
hashMap.put("shift", new zzhp());
hashMap.put("slice", new zzhq());
hashMap.put("some", new zzhr());
hashMap.put("sort", new zzhs());
hashMap.put("splice", new zzhw());
hashMap.put("toString", new zzkc());
hashMap.put("unshift", new zzhx());
zzaug = Collections.unmodifiableMap(hashMap);
}
@Override // com.google.android.gms.internal.gtm.zzoa
public final /* synthetic */ List<zzoa<?>> value() {
return this.zzaup;
}
}