67 lines
2.8 KiB
Java
67 lines
2.8 KiB
Java
package o;
|
|
|
|
import java.io.IOException;
|
|
import org.xmlpull.repackaged.v1.XmlPullParserException;
|
|
|
|
/* loaded from: classes6.dex */
|
|
final class gmX implements InterfaceC15279gmN {
|
|
@Override // o.InterfaceC15279gmN
|
|
public final Object readInstance(InterfaceC15578gue interfaceC15578gue, String str, String str2, C15281gmQ c15281gmQ) throws IOException, XmlPullParserException {
|
|
String l = interfaceC15578gue.l();
|
|
char charAt = str2.charAt(0);
|
|
if (charAt == 'b') {
|
|
return new Boolean(C15273gmG.b(l));
|
|
}
|
|
if (charAt == 'i') {
|
|
return new Integer(Integer.parseInt(l));
|
|
}
|
|
if (charAt == 'l') {
|
|
return new Long(Long.parseLong(l));
|
|
}
|
|
if (charAt == 's') {
|
|
return l;
|
|
}
|
|
throw new RuntimeException();
|
|
}
|
|
|
|
@Override // o.InterfaceC15279gmN
|
|
public final void writeInstance(InterfaceC15580gug interfaceC15580gug, Object obj) throws IOException {
|
|
int i = 0;
|
|
if (obj instanceof gmF) {
|
|
gmF gmf = (gmF) obj;
|
|
int size = gmf.a.size();
|
|
while (i < size) {
|
|
C15277gmK c15277gmK = new C15277gmK();
|
|
gmf.d(i, c15277gmK);
|
|
if (c15277gmK.c() != null) {
|
|
interfaceC15580gug.c(c15277gmK.l, c15277gmK.m, c15277gmK.c() != null ? c15277gmK.c().toString() : "");
|
|
}
|
|
i++;
|
|
}
|
|
} else if (obj instanceof InterfaceC15278gmL) {
|
|
InterfaceC15278gmL interfaceC15278gmL = (InterfaceC15278gmL) obj;
|
|
int e = interfaceC15278gmL.e();
|
|
while (i < e) {
|
|
C15277gmK c15277gmK2 = new C15277gmK();
|
|
interfaceC15278gmL.d(i, c15277gmK2);
|
|
if (c15277gmK2.c() != null) {
|
|
interfaceC15580gug.c(c15277gmK2.l, c15277gmK2.m, c15277gmK2.c() != null ? c15277gmK2.c().toString() : "");
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
if (obj instanceof InterfaceC15282gmT) {
|
|
} else {
|
|
interfaceC15580gug.i(obj.toString());
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC15279gmN
|
|
public final void register(C15280gmP c15280gmP) {
|
|
C15280gmP.a(new Object[]{c15280gmP, c15280gmP.g, "int", C15281gmQ.c, this}, -1296533552, 1296533555, System.identityHashCode(c15280gmP));
|
|
C15280gmP.a(new Object[]{c15280gmP, c15280gmP.g, "long", C15281gmQ.a, this}, -1296533552, 1296533555, System.identityHashCode(c15280gmP));
|
|
C15280gmP.a(new Object[]{c15280gmP, c15280gmP.g, "string", C15281gmQ.j, this}, -1296533552, 1296533555, System.identityHashCode(c15280gmP));
|
|
C15280gmP.a(new Object[]{c15280gmP, c15280gmP.g, "boolean", C15281gmQ.d, this}, -1296533552, 1296533555, System.identityHashCode(c15280gmP));
|
|
}
|
|
}
|