what-the-bank/sources/o/ugU.java

91 lines
3.3 KiB
Java

package o;
import com.google.common.base.Preconditions;
import java.io.Closeable;
import java.io.Flushable;
import java.io.IOException;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes2.dex */
public abstract class ugU implements Closeable, Flushable {
@Override // java.io.Flushable
public abstract void flush() throws IOException;
/* JADX INFO: Access modifiers changed from: package-private */
public final void d(boolean z, Object obj) throws IOException {
boolean z2;
if (obj == null) {
return;
}
Class<?> cls = obj.getClass();
if (obj == null || obj != C1169XbG.d.get(obj.getClass())) {
if (obj instanceof String) {
return;
}
if (obj instanceof Number) {
if (z) {
return;
}
if (obj instanceof BigDecimal) {
return;
}
if (obj instanceof BigInteger) {
return;
}
if (obj instanceof Long) {
return;
}
if (obj instanceof Float) {
float floatValue = ((Number) obj).floatValue();
Preconditions.checkArgument((Float.isInfinite(floatValue) || Float.isNaN(floatValue)) ? false : true);
return;
} else if ((obj instanceof Integer) || (obj instanceof Short) || (obj instanceof Byte)) {
return;
} else {
double doubleValue = ((Number) obj).doubleValue();
Preconditions.checkArgument((Double.isInfinite(doubleValue) || Double.isNaN(doubleValue)) ? false : true);
return;
}
}
if (obj instanceof Boolean) {
return;
}
if (obj instanceof RMP) {
((RMP) obj).d();
return;
}
if (((obj instanceof Iterable) || cls.isArray()) && !(obj instanceof Map) && !(obj instanceof C10246dzE)) {
Iterator it = PXI.c(obj).iterator();
while (it.hasNext()) {
d(z, it.next());
}
return;
}
if (!cls.isEnum()) {
boolean z3 = (obj instanceof Map) && !(obj instanceof C10246dzE);
Coa a = z3 ? null : Coa.a(cls);
for (Map.Entry<String, Object> entry : C1169XbG.e(obj).entrySet()) {
Object value = entry.getValue();
if (value != null) {
String key = entry.getKey();
if (z3) {
z2 = z;
} else {
NIm c = a.c(key);
Field field = c == null ? null : c.a;
z2 = (field == null || field.getAnnotation(InterfaceC17036tRC.class) == null) ? false : true;
}
d(z2, value);
}
}
return;
}
String str = NIm.e((Enum) obj).b;
}
}
}