granularity level: instruction
.class public final Lcom/google/android/datatransport/runtime/dagger/internal/DelegateFactory;
.super Ljava/lang/Object;
.source "DelegateFactory.java"
.implements Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"TT;>;"
}
.end annotation
.field private delegate:Ljavax/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljavax/inject/Provider<",
"TT;>;"
}
.end annotation
.end field
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static setDelegate(Ljavax/inject/Provider;Ljavax/inject/Provider;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljavax/inject/Provider<",
"TT;>;",
"Ljavax/inject/Provider<",
"TT;>;)V"
}
.end annotation
invoke-static {p1}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p0, Lcom/google/android/datatransport/runtime/dagger/internal/DelegateFactory;
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/DelegateFactory;->delegate:Ljavax/inject/Provider;
if-nez v0, :cond_0
iput-object p1, p0, Lcom/google/android/datatransport/runtime/dagger/internal/DelegateFactory;->delegate:Ljavax/inject/Provider;
return-void
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
invoke-direct {p0}, Ljava/lang/IllegalStateException;-><init>()V
throw p0
.end method
.method public get()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/DelegateFactory;->delegate:Ljavax/inject/Provider;
if-eqz v0, :cond_0
invoke-interface {v0}, Ljavax/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
return-object v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
throw v0
.end method
.method getDelegate()Ljavax/inject/Provider;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljavax/inject/Provider<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/DelegateFactory;->delegate:Ljavax/inject/Provider;
invoke-static {v0}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljavax/inject/Provider;
return-object v0
.end method
.method public setDelegatedProvider(Ljavax/inject/Provider;)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljavax/inject/Provider<",
"TT;>;)V"
}
.end annotation
invoke-static {p0, p1}, Lcom/google/android/datatransport/runtime/dagger/internal/DelegateFactory;->setDelegate(Ljavax/inject/Provider;Ljavax/inject/Provider;)V
return-void
.end method