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

106 lines
3.4 KiB
Java

package com.google.android.gms.internal.gtm;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/* loaded from: classes2.dex */
final class zzrw extends zzru {
private static final Class<?> zzbcj = Collections.unmodifiableList(Collections.emptyList()).getClass();
private zzrw() {
super();
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.android.gms.internal.gtm.zzru
public final <L> List<L> zza(Object obj, long j) {
return zza(obj, j, 10);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.android.gms.internal.gtm.zzru
public final void zzb(Object obj, long j) {
Object unmodifiableList;
List list = (List) zztx.zzp(obj, j);
if (list instanceof zzrt) {
unmodifiableList = ((zzrt) list).zzqb();
} else {
if (zzbcj.isAssignableFrom(list.getClass())) {
return;
}
if ((list instanceof zzsv) && (list instanceof zzrj)) {
zzrj zzrjVar = (zzrj) list;
if (zzrjVar.zzmy()) {
zzrjVar.zzmi();
return;
}
return;
}
unmodifiableList = Collections.unmodifiableList(list);
}
zztx.zza(obj, j, unmodifiableList);
}
/* JADX WARN: Multi-variable type inference failed */
private static <L> List<L> zza(Object obj, long j, int i) {
zzrs zzrsVar;
List<L> arrayList;
List<L> zzc = zzc(obj, j);
if (zzc.isEmpty()) {
if (zzc instanceof zzrt) {
arrayList = new zzrs(i);
} else if ((zzc instanceof zzsv) && (zzc instanceof zzrj)) {
arrayList = ((zzrj) zzc).zzaj(i);
} else {
arrayList = new ArrayList<>(i);
}
zztx.zza(obj, j, arrayList);
return arrayList;
}
if (zzbcj.isAssignableFrom(zzc.getClass())) {
ArrayList arrayList2 = new ArrayList(zzc.size() + i);
arrayList2.addAll(zzc);
zztx.zza(obj, j, arrayList2);
zzrsVar = arrayList2;
} else if (zzc instanceof zztu) {
zzrs zzrsVar2 = new zzrs(zzc.size() + i);
zzrsVar2.addAll((zztu) zzc);
zztx.zza(obj, j, zzrsVar2);
zzrsVar = zzrsVar2;
} else {
if (!(zzc instanceof zzsv) || !(zzc instanceof zzrj)) {
return zzc;
}
zzrj zzrjVar = (zzrj) zzc;
if (zzrjVar.zzmy()) {
return zzc;
}
zzrj zzaj = zzrjVar.zzaj(zzc.size() + i);
zztx.zza(obj, j, zzaj);
return zzaj;
}
return zzrsVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.android.gms.internal.gtm.zzru
public final <E> void zza(Object obj, Object obj2, long j) {
List zzc = zzc(obj2, j);
List zza = zza(obj, j, zzc.size());
int size = zza.size();
int size2 = zzc.size();
if (size > 0 && size2 > 0) {
zza.addAll(zzc);
}
if (size > 0) {
zzc = zza;
}
zztx.zza(obj, j, zzc);
}
private static <E> List<E> zzc(Object obj, long j) {
return (List) zztx.zzp(obj, j);
}
}