package com.facetec.sdk; import java.io.IOException; import java.io.StringWriter; /* loaded from: classes.dex */ public abstract class eb { public final boolean f() { return this instanceof dy; } public final boolean i() { return this instanceof ec; } public final boolean g() { return this instanceof eh; } public final boolean h() { return this instanceof ea; } public final eh l() { if (g()) { return (eh) this; } throw new IllegalStateException("Not a JSON Primitive: ".concat(String.valueOf(this))); } public boolean j() { throw new UnsupportedOperationException(getClass().getSimpleName()); } public Number e() { throw new UnsupportedOperationException(getClass().getSimpleName()); } public String b() { throw new UnsupportedOperationException(getClass().getSimpleName()); } public double c() { throw new UnsupportedOperationException(getClass().getSimpleName()); } public long d() { throw new UnsupportedOperationException(getClass().getSimpleName()); } public int a() { throw new UnsupportedOperationException(getClass().getSimpleName()); } public String toString() { try { StringWriter stringWriter = new StringWriter(); ga gaVar = new ga(stringWriter); gaVar.c(true); fd.c(this, gaVar); return stringWriter.toString(); } catch (IOException e) { throw new AssertionError(e); } } }