discord-jadx/app/src/main/java/c/c/a/a0/v.java

30 lines
890 B
Java

package c.c.a.a0;
import android.graphics.PointF;
import c.c.a.a0.h0.c;
import java.io.IOException;
/* compiled from: PointFParser */
public class v implements g0<PointF> {
public static final v a = new v();
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // c.c.a.a0.g0
public PointF a(c cVar, float f) throws IOException {
c.b w = cVar.w();
if (w == c.b.BEGIN_ARRAY) {
return o.b(cVar, f);
}
if (w == c.b.BEGIN_OBJECT) {
return o.b(cVar, f);
}
if (w == c.b.NUMBER) {
PointF pointF = new PointF(((float) cVar.p()) * f, ((float) cVar.p()) * f);
while (cVar.e()) {
cVar.C();
}
return pointF;
}
throw new IllegalArgumentException("Cannot convert json to point. Next token is " + w);
}
}