apkfuckery/com.discord/smali/androidx/collection/SparseArrayKt.smali
2020-11-09 19:03:49 +00:00

333 lines
9.4 KiB
Smali

.class public final Landroidx/collection/SparseArrayKt;
.super Ljava/lang/Object;
.source "SparseArray.kt"
# direct methods
.method public static final contains(Landroidx/collection/SparseArrayCompat;I)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;I)Z"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Landroidx/collection/SparseArrayCompat;->containsKey(I)Z
move-result p0
return p0
.end method
.method public static final forEach(Landroidx/collection/SparseArrayCompat;Lkotlin/jvm/functions/Function2;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;",
"Lkotlin/jvm/functions/Function2<",
"-",
"Ljava/lang/Integer;",
"-TT;",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "action"
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
invoke-virtual {p0, v1}, Landroidx/collection/SparseArrayCompat;->keyAt(I)I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {p0, v1}, Landroidx/collection/SparseArrayCompat;->valueAt(I)Ljava/lang/Object;
move-result-object v3
invoke-interface {p1, v2, v3}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public static final getOrDefault(Landroidx/collection/SparseArrayCompat;ILjava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;ITT;)TT;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1, p2}, Landroidx/collection/SparseArrayCompat;->get(ILjava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static final getOrElse(Landroidx/collection/SparseArrayCompat;ILkotlin/jvm/functions/Function0;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;I",
"Lkotlin/jvm/functions/Function0<",
"+TT;>;)TT;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "defaultValue"
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Landroidx/collection/SparseArrayCompat;->get(I)Ljava/lang/Object;
move-result-object p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
invoke-interface {p2}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object p0
:goto_0
return-object p0
.end method
.method public static final getSize(Landroidx/collection/SparseArrayCompat;)I
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;)I"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Landroidx/collection/SparseArrayCompat;->size()I
move-result p0
return p0
.end method
.method public static final isNotEmpty(Landroidx/collection/SparseArrayCompat;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;)Z"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Landroidx/collection/SparseArrayCompat;->isEmpty()Z
move-result p0
xor-int/lit8 p0, p0, 0x1
return p0
.end method
.method public static final keyIterator(Landroidx/collection/SparseArrayCompat;)Ly/i/o;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;)",
"Ly/i/o;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Landroidx/collection/SparseArrayKt$keyIterator$1;
invoke-direct {v0, p0}, Landroidx/collection/SparseArrayKt$keyIterator$1;-><init>(Landroidx/collection/SparseArrayCompat;)V
return-object v0
.end method
.method public static final plus(Landroidx/collection/SparseArrayCompat;Landroidx/collection/SparseArrayCompat;)Landroidx/collection/SparseArrayCompat;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;)",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Landroidx/collection/SparseArrayCompat;
invoke-virtual {p0}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v1
invoke-virtual {p1}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v2
add-int/2addr v2, v1
invoke-direct {v0, v2}, Landroidx/collection/SparseArrayCompat;-><init>(I)V
invoke-virtual {v0, p0}, Landroidx/collection/SparseArrayCompat;->putAll(Landroidx/collection/SparseArrayCompat;)V
invoke-virtual {v0, p1}, Landroidx/collection/SparseArrayCompat;->putAll(Landroidx/collection/SparseArrayCompat;)V
return-object v0
.end method
.method public static final remove(Landroidx/collection/SparseArrayCompat;ILjava/lang/Object;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;ITT;)Z"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1, p2}, Landroidx/collection/SparseArrayCompat;->remove(ILjava/lang/Object;)Z
move-result p0
return p0
.end method
.method public static final set(Landroidx/collection/SparseArrayCompat;ILjava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;ITT;)V"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1, p2}, Landroidx/collection/SparseArrayCompat;->put(ILjava/lang/Object;)V
return-void
.end method
.method public static final valueIterator(Landroidx/collection/SparseArrayCompat;)Ljava/util/Iterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/collection/SparseArrayCompat<",
"TT;>;)",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Landroidx/collection/SparseArrayKt$valueIterator$1;
invoke-direct {v0, p0}, Landroidx/collection/SparseArrayKt$valueIterator$1;-><init>(Landroidx/collection/SparseArrayCompat;)V
return-object v0
.end method