what-the-bank/sources/com/google/android/libraries/places/internal/zzafq.java

91 lines
3.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/* loaded from: classes2.dex */
final class zzafq extends zzafu {
private static final Class zza = Collections.unmodifiableList(Collections.emptyList()).getClass();
private zzafq() {
super(null);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.android.libraries.places.internal.zzafu
public final void zza(Object obj, long j) {
Object unmodifiableList;
List list = (List) zzahs.zzf(obj, j);
if (list instanceof zzafo) {
unmodifiableList = ((zzafo) list).zzd();
} else {
if (zza.isAssignableFrom(list.getClass())) {
return;
}
if (!(list instanceof zzagn) || !(list instanceof zzafg)) {
unmodifiableList = Collections.unmodifiableList(list);
} else {
zzafg zzafgVar = (zzafg) list;
if (zzafgVar.zzc()) {
zzafgVar.zzb();
return;
}
return;
}
}
zzahs.zzs(obj, j, unmodifiableList);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.android.libraries.places.internal.zzafu
public final void zzb(Object obj, Object obj2, long j) {
AbstractList zzafnVar;
List list = (List) zzahs.zzf(obj2, j);
int size = list.size();
List list2 = (List) zzahs.zzf(obj, j);
if (list2.isEmpty()) {
if (list2 instanceof zzafo) {
list2 = new zzafn(size);
} else if (!(list2 instanceof zzagn) || !(list2 instanceof zzafg)) {
list2 = new ArrayList(size);
} else {
list2 = ((zzafg) list2).zzf(size);
}
zzahs.zzs(obj, j, list2);
} else {
if (zza.isAssignableFrom(list2.getClass())) {
zzafnVar = new ArrayList(list2.size() + size);
zzafnVar.addAll(list2);
zzahs.zzs(obj, j, zzafnVar);
} else if (list2 instanceof zzahn) {
zzafnVar = new zzafn(list2.size() + size);
zzafnVar.addAll(zzafnVar.size(), (zzahn) list2);
zzahs.zzs(obj, j, zzafnVar);
} else if ((list2 instanceof zzagn) && (list2 instanceof zzafg)) {
zzafg zzafgVar = (zzafg) list2;
if (!zzafgVar.zzc()) {
list2 = zzafgVar.zzf(list2.size() + size);
zzahs.zzs(obj, j, list2);
}
}
list2 = zzafnVar;
}
int size2 = list2.size();
int size3 = list.size();
if (size2 > 0 && size3 > 0) {
list2.addAll(list);
}
if (size2 > 0) {
list = list2;
}
zzahs.zzs(obj, j, list);
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzafq(zzafp zzafpVar) {
super(null);
}
}