Rabbit-R1/original r1/smali/smali_classes2/androidx/navigation/NavArgument$Builder.smali

154 lines
5 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Landroidx/navigation/NavArgument$Builder;
.super Ljava/lang/Object;
.source "NavArgument.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/navigation/NavArgument;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0006\u0010\t\u001a\u00020\nJ\u0010\u0010\u000b\u001a\u00020\u00002\u0008\u0010\u0003\u001a\u0004\u0018\u00010\u0001J\u000e\u0010\u000c\u001a\u00020\u00002\u0006\u0010\u0006\u001a\u00020\u0005J\u001a\u0010\r\u001a\u00020\u0000\"\u0004\u0008\u0000\u0010\u000e2\u000c\u0010\u0007\u001a\u0008\u0012\u0004\u0012\u0002H\u000e0\u0008R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0001X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0018\u0010\u0007\u001a\u000c\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000f"
}
d2 = {
"Landroidx/navigation/NavArgument$Builder;",
"",
"()V",
"defaultValue",
"defaultValuePresent",
"",
"isNullable",
"type",
"Landroidx/navigation/NavType;",
"build",
"Landroidx/navigation/NavArgument;",
"setDefaultValue",
"setIsNullable",
"setType",
"T",
"navigation-common_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private defaultValue:Ljava/lang/Object;
.field private defaultValuePresent:Z
.field private isNullable:Z
.field private type:Landroidx/navigation/NavType;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/navigation/NavType<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
.line 119
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final build()Landroidx/navigation/NavArgument;
.locals 4
iget-object v0, p0, Landroidx/navigation/NavArgument$Builder;->type:Landroidx/navigation/NavType;
if-nez v0, :cond_0
.line 168
sget-object v0, Landroidx/navigation/NavType;->Companion:Landroidx/navigation/NavType$Companion;
iget-object v1, p0, Landroidx/navigation/NavArgument$Builder;->defaultValue:Ljava/lang/Object;
invoke-virtual {v0, v1}, Landroidx/navigation/NavType$Companion;->inferFromValueType(Ljava/lang/Object;)Landroidx/navigation/NavType;
move-result-object v0
const-string v1, "null cannot be cast to non-null type androidx.navigation.NavType<kotlin.Any?>"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 169
:cond_0
new-instance v1, Landroidx/navigation/NavArgument;
iget-boolean v2, p0, Landroidx/navigation/NavArgument$Builder;->isNullable:Z
iget-object v3, p0, Landroidx/navigation/NavArgument$Builder;->defaultValue:Ljava/lang/Object;
iget-boolean p0, p0, Landroidx/navigation/NavArgument$Builder;->defaultValuePresent:Z
invoke-direct {v1, v0, v2, v3, p0}, Landroidx/navigation/NavArgument;-><init>(Landroidx/navigation/NavType;ZLjava/lang/Object;Z)V
return-object v1
.end method
.method public final setDefaultValue(Ljava/lang/Object;)Landroidx/navigation/NavArgument$Builder;
.locals 0
iput-object p1, p0, Landroidx/navigation/NavArgument$Builder;->defaultValue:Ljava/lang/Object;
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/navigation/NavArgument$Builder;->defaultValuePresent:Z
return-object p0
.end method
.method public final setIsNullable(Z)Landroidx/navigation/NavArgument$Builder;
.locals 0
iput-boolean p1, p0, Landroidx/navigation/NavArgument$Builder;->isNullable:Z
return-object p0
.end method
.method public final setType(Landroidx/navigation/NavType;)Landroidx/navigation/NavArgument$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/navigation/NavType<",
"TT;>;)",
"Landroidx/navigation/NavArgument$Builder;"
}
.end annotation
const-string v0, "type"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Landroidx/navigation/NavArgument$Builder;->type:Landroidx/navigation/NavType;
return-object p0
.end method