apkfuckery/com.discord/smali/androidx/collection/ArraySetKt.smali
2020-09-18 17:51:47 +00:00

65 lines
1.5 KiB
Smali

.class public final Landroidx/collection/ArraySetKt;
.super Ljava/lang/Object;
.source "ArraySet.kt"
# direct methods
.method public static final arraySetOf()Landroidx/collection/ArraySet;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Landroidx/collection/ArraySet<",
"TT;>;"
}
.end annotation
new-instance v0, Landroidx/collection/ArraySet;
invoke-direct {v0}, Landroidx/collection/ArraySet;-><init>()V
return-object v0
.end method
.method public static final varargs arraySetOf([Ljava/lang/Object;)Landroidx/collection/ArraySet;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Landroidx/collection/ArraySet<",
"TT;>;"
}
.end annotation
const-string/jumbo v0, "values"
invoke-static {p0, v0}, Lc0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Landroidx/collection/ArraySet;
array-length v1, p0
invoke-direct {v0, v1}, Landroidx/collection/ArraySet;-><init>(I)V
array-length v1, p0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, p0, v2
invoke-virtual {v0, v3}, Landroidx/collection/ArraySet;->add(Ljava/lang/Object;)Z
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v0
.end method