package p138.p395.p396;

import com.squareup.moshi.JsonDataException;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Set;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nullable;
import p138.p395.p396.AbstractC6491;
import p138.p395.p396.p397.C6526;
import p461.C7103;
import p461.InterfaceC7107;

/* JADX INFO: renamed from: ދ.ބ.֏.ތ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC6487<T> {

    /* JADX INFO: renamed from: ދ.ބ.֏.ތ$֏, reason: contains not printable characters */
    public interface InterfaceC6488 {
        @CheckReturnValue
        @Nullable
        /* JADX INFO: renamed from: ֏ */
        AbstractC6487<?> mo9674(Type type, Set<? extends Annotation> set, C6509 c6509);
    }

    @CheckReturnValue
    @Nullable
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final T m9679(String str) {
        C7103 c7103 = new C7103();
        c7103.mo10414(str);
        C6494 c6494 = new C6494(c7103);
        T tMo9672 = mo9672((AbstractC6491) c6494);
        if (mo9678() || c6494.mo9696() == AbstractC6491.EnumC6493.END_DOCUMENT) {
            return tMo9672;
        }
        throw new JsonDataException("JSON document was not fully consumed.");
    }

    @CheckReturnValue
    @Nullable
    /* JADX INFO: renamed from: ֏ */
    public abstract T mo9672(AbstractC6491 abstractC6491);

    @CheckReturnValue
    @Nullable
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final T m9680(InterfaceC7107 interfaceC7107) {
        return mo9672((AbstractC6491) new C6494(interfaceC7107));
    }

    @CheckReturnValue
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final String m9681(@Nullable T t) {
        C7103 c7103 = new C7103();
        try {
            mo9673(new C6495(c7103), t);
            return c7103.m10437();
        } catch (IOException e) {
            throw new AssertionError(e);
        }
    }

    /* JADX INFO: renamed from: ֏ */
    public abstract void mo9673(AbstractC6497 abstractC6497, @Nullable T t);

    /* JADX INFO: renamed from: ֏ */
    public boolean mo9678() {
        return false;
    }

    @CheckReturnValue
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final AbstractC6487<T> m9682() {
        return this instanceof C6526 ? this : new C6526(this);
    }
}
