granularity level: instruction
.class public Lcom/google/firebase/components/Lazy;
.super Ljava/lang/Object;
.source "Lazy.java"
.implements Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
.field private static final UNINITIALIZED:Ljava/lang/Object;
.field private volatile instance:Ljava/lang/Object;
.field private volatile provider:Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
.end field
.method static constructor <clinit>()V
.locals 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
return-void
.end method
.method public constructor <init>(Lcom/google/firebase/inject/Provider;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Provider<",
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
sget-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
iput-object p1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
return-void
.end method
.method constructor <init>(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
sget-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
iput-object p1, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
return-void
.end method
.method public get()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
sget-object v1, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
if-ne v0, v1, :cond_1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
const/4 v1, 0x0
iput-object v1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
:cond_0
monitor-exit p0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:goto_0
:cond_1
return-object v0
.end method
.method isInitialized()Z
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
sget-object v1, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
if-eq v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method