apkfuckery/com.discord/smali/androidx/work/DataKt.smali
2020-07-25 00:57:58 +00:00

105 lines
2.3 KiB
Smali

.class public final Landroidx/work/DataKt;
.super Ljava/lang/Object;
.source "Data.kt"
# direct methods
.method public static final hasKeyWithValueOfType(Landroidx/work/Data;Ljava/lang/String;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/work/Data;",
"Ljava/lang/String;",
")Z"
}
.end annotation
const/4 v0, 0x0
if-eqz p0, :cond_1
if-eqz p1, :cond_0
invoke-static {}, Lj0/n/c/h;->reifiedOperationMarker()V
throw v0
:cond_0
const-string p0, "key"
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_1
const-string p0, "$this$hasKeyWithValueOfType"
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
.end method
.method public static final varargs workDataOf([Lkotlin/Pair;)Landroidx/work/Data;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lkotlin/Pair<",
"Ljava/lang/String;",
"+",
"Ljava/lang/Object;",
">;)",
"Landroidx/work/Data;"
}
.end annotation
if-eqz p0, :cond_1
new-instance v0, Landroidx/work/Data$Builder;
invoke-direct {v0}, Landroidx/work/Data$Builder;-><init>()V
array-length v1, p0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, p0, v2
iget-object v4, v3, Lkotlin/Pair;->first:Ljava/lang/Object;
check-cast v4, Ljava/lang/String;
iget-object v3, v3, Lkotlin/Pair;->second:Ljava/lang/Object;
invoke-virtual {v0, v4, v3}, Landroidx/work/Data$Builder;->put(Ljava/lang/String;Ljava/lang/Object;)Landroidx/work/Data$Builder;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
invoke-virtual {v0}, Landroidx/work/Data$Builder;->build()Landroidx/work/Data;
move-result-object p0
const-string v0, "dataBuilder.build()"
invoke-static {p0, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
:cond_1
const-string p0, "pairs"
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
const/4 p0, 0x0
throw p0
.end method