discord-jadx/app/src/main/java/c/g/a/c/n.java
2021-07-24 04:37:17 +02:00

44 lines
996 B
Java

package c.g.a.c;
import c.g.a.b.d;
import c.g.a.c.e0.g;
import c.g.a.c.g0.t.t;
import java.io.IOException;
/* compiled from: JsonSerializer */
public abstract class n<T> {
/* compiled from: JsonSerializer */
public static abstract class a extends n<Object> {
}
public Class<T> c() {
return null;
}
public boolean d(x xVar, T t) {
return t == null;
}
public boolean e() {
return this instanceof t;
}
public abstract void f(T t, d dVar, x xVar) throws IOException;
public void g(T t, d dVar, x xVar, g gVar) throws IOException {
Class c2 = c();
if (c2 == null) {
c2 = t.getClass();
}
xVar.f(xVar.b(c2), String.format("Type id handling not implemented for type %s (by serializer of type %s)", c2.getName(), getClass().getName()));
throw null;
}
public n<T> h(c.g.a.c.i0.n nVar) {
return this;
}
public boolean i() {
return false;
}
}