a.smali

.class public final Lyb/a;
.super Lxb/h$a;
.source "SourceFile"


# instance fields
.field private final a:Lcom/google/gson/Gson;


# direct methods
.method private constructor <init>(Lcom/google/gson/Gson;)V
    .registers 2

    invoke-direct {p0}, Lxb/h$a;-><init>()V

    iput-object p1, p0, Lyb/a;->a:Lcom/google/gson/Gson;

    return-void
.end method

.method public static f()Lyb/a;
    .registers 1

    new-instance v0, Lcom/google/gson/Gson;

    invoke-direct {v0}, Lcom/google/gson/Gson;-><init>()V

    invoke-static {v0}, Lyb/a;->g(Lcom/google/gson/Gson;)Lyb/a;

    move-result-object v0

    return-object v0
.end method

.method public static g(Lcom/google/gson/Gson;)Lyb/a;
    .registers 2

    if-eqz p0, :cond_8

    new-instance v0, Lyb/a;

    invoke-direct {v0, p0}, Lyb/a;-><init>(Lcom/google/gson/Gson;)V

    return-object v0

    :cond_8
    new-instance p0, Ljava/lang/NullPointerException;

    const-string v0, "gson == null"

    invoke-direct {p0, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw p0
.end method


# virtual methods
.method public c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;Lxb/z;)Lxb/h;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Type;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "Lxb/z;",
            ")",
            "Lxb/h<",
            "*",
            "Llb/a0;",
            ">;"
        }
    .end annotation

    iget-object p2, p0, Lyb/a;->a:Lcom/google/gson/Gson;

    invoke-static {p1}, Lcom/google/gson/reflect/a;->get(Ljava/lang/reflect/Type;)Lcom/google/gson/reflect/a;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/google/gson/Gson;->m(Lcom/google/gson/reflect/a;)Lcom/google/gson/TypeAdapter;

    move-result-object p1

    new-instance p2, Lyb/b;

    iget-object p3, p0, Lyb/a;->a:Lcom/google/gson/Gson;

    invoke-direct {p2, p3, p1}, Lyb/b;-><init>(Lcom/google/gson/Gson;Lcom/google/gson/TypeAdapter;)V

    return-object p2
.end method

.method public d(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lxb/z;)Lxb/h;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Type;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "Lxb/z;",
            ")",
            "Lxb/h<",
            "Llb/c0;",
            "*>;"
        }
    .end annotation

    iget-object p2, p0, Lyb/a;->a:Lcom/google/gson/Gson;

    invoke-static {p1}, Lcom/google/gson/reflect/a;->get(Ljava/lang/reflect/Type;)Lcom/google/gson/reflect/a;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/google/gson/Gson;->m(Lcom/google/gson/reflect/a;)Lcom/google/gson/TypeAdapter;

    move-result-object p1

    new-instance p2, Lyb/c;

    iget-object p3, p0, Lyb/a;->a:Lcom/google/gson/Gson;

    invoke-direct {p2, p3, p1}, Lyb/c;-><init>(Lcom/google/gson/Gson;Lcom/google/gson/TypeAdapter;)V

    return-object p2
.end method