what-the-bank/sources/com/facetec/sdk/ff.java

68 lines
1.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.Collection;
import java.util.Iterator;
/* loaded from: classes.dex */
public final class ff implements en {
private final eq e;
public ff(eq eqVar) {
this.e = eqVar;
}
@Override // com.facetec.sdk.en
public final <T> ek<T> e(dx dxVar, fv<T> fvVar) {
Type b = fvVar.b();
Class<? super T> a = fvVar.a();
if (!Collection.class.isAssignableFrom(a)) {
return null;
}
Type c = et.c(b, (Class<?>) a);
return new e(dxVar, c, dxVar.d(fv.b(c)), this.e.d(fvVar));
}
/* loaded from: classes.dex */
static final class e<E> extends ek<Collection<E>> {
private final ek<E> a;
private final fc<? extends Collection<E>> e;
@Override // com.facetec.sdk.ek
public final /* synthetic */ void b(ga gaVar, Object obj) throws IOException {
Collection collection = (Collection) obj;
if (collection == null) {
gaVar.h();
return;
}
gaVar.e();
Iterator<E> it = collection.iterator();
while (it.hasNext()) {
this.a.b(gaVar, it.next());
}
gaVar.b();
}
public e(dx dxVar, Type type, ek<E> ekVar, fc<? extends Collection<E>> fcVar) {
this.a = new fq(dxVar, ekVar, type);
this.e = fcVar;
}
@Override // com.facetec.sdk.ek
public final /* synthetic */ Object a(fu fuVar) throws IOException {
if (fuVar.i() == gc.NULL) {
fuVar.l();
return null;
}
Collection<E> c = this.e.c();
fuVar.a();
while (fuVar.e()) {
c.add(this.a.a(fuVar));
}
fuVar.c();
return c;
}
}
}