tmap/smali_classes2/com/amplifyframework/predictions/result/IdentifyLabelsResult$Builder.smali
2022-06-10 21:38:30 +09:00

146 lines
4.1 KiB
Smali

.class public final Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
.super Ljava/lang/Object;
.source "IdentifyLabelsResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private labels:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;"
}
.end annotation
.end field
.field private unsafeContent:Z
# direct methods
.method private constructor <init>()V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->labels:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$1;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;-><init>()V
return-void
.end method
# virtual methods
.method public build()Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;-><init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$1;)V
return-object v0
.end method
.method public getLabels()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->labels:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getUnsafeContent()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->unsafeContent:Z
return v0
.end method
.method public labels(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->labels:Ljava/util/List;
return-object p0
.end method
.method public unsafeContent(Z)Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iput-boolean p1, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->unsafeContent:Z
return-object p0
.end method