granularity level: instruction
.class public final Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;
.super Ljava/lang/Object;
.source "InstanceFactory.java"
.implements Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
.implements Lcom/google/android/datatransport/runtime/dagger/Lazy;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"TT;>;",
"Lcom/google/android/datatransport/runtime/dagger/Lazy<",
"TT;>;"
}
.end annotation
.field private static final NULL_INSTANCE_FACTORY:Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private final instance:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;-><init>(Ljava/lang/Object;)V
sput-object v0, Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;->NULL_INSTANCE_FACTORY:Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;
return-void
.end method
.method private constructor <init>(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;->instance:Ljava/lang/Object;
return-void
.end method
.method public static create(Ljava/lang/Object;)Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"TT;>;"
}
.end annotation
new-instance v0, Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;
const-string v1, "instance cannot be null"
invoke-static {p0, v1}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
.method public static createNullable(Ljava/lang/Object;)Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"TT;>;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method private static nullInstanceFactory()Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory<",
"TT;>;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.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/InstanceFactory;->instance:Ljava/lang/Object;
return-object v0
.end method