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

44 lines
1.5 KiB
Java

package com.facetec.sdk;
/* loaded from: classes.dex */
public final class fe implements en {
private final eq d;
public fe(eq eqVar) {
this.d = eqVar;
}
@Override // com.facetec.sdk.en
public final <T> ek<T> e(dx dxVar, fv<T> fvVar) {
em emVar = (em) fvVar.a().getAnnotation(em.class);
if (emVar == null) {
return null;
}
return (ek<T>) b(this.d, dxVar, fvVar, emVar);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static ek<?> b(eq eqVar, dx dxVar, fv<?> fvVar, em emVar) {
ek<?> frVar;
Object c = eqVar.d(fv.b((Class) emVar.a())).c();
if (c instanceof ek) {
frVar = (ek) c;
} else if (c instanceof en) {
frVar = ((en) c).e(dxVar, fvVar);
} else {
boolean z = c instanceof eg;
if (z || (c instanceof ee)) {
frVar = new fr<>(z ? (eg) c : null, c instanceof ee ? (ee) c : null, dxVar, fvVar);
} else {
StringBuilder sb = new StringBuilder("Invalid attempt to bind an instance of ");
sb.append(c.getClass().getName());
sb.append(" as a @JsonAdapter for ");
sb.append(fvVar.toString());
sb.append(". @JsonAdapter value must be a TypeAdapter, TypeAdapterFactory, JsonSerializer or JsonDeserializer.");
throw new IllegalArgumentException(sb.toString());
}
}
return (frVar == null || !emVar.b()) ? frVar : frVar.b();
}
}