apkfuckery/com.discord/smali_classes2/b0/i/q.smali

200 lines
4.3 KiB
Smali
Raw Normal View History

2020-09-29 21:44:44 +00:00
.class public final Lb0/i/q;
2020-09-16 23:45:23 +00:00
.super Ljava/util/AbstractList;
.source "ReversedViews.kt"
2020-05-17 12:40:10 +00:00
# interfaces
2020-09-16 23:45:23 +00:00
.implements Ljava/util/List;
2020-09-29 21:44:44 +00:00
.implements Lb0/n/c/x/c;
2020-05-17 12:40:10 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
2020-09-16 23:45:23 +00:00
"<T:",
2020-05-17 12:40:10 +00:00
"Ljava/lang/Object;",
2020-09-16 23:45:23 +00:00
">",
2020-09-29 21:44:44 +00:00
"Lb0/i/q<",
2020-09-16 23:45:23 +00:00
"TT;>;"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-09-16 23:45:23 +00:00
# instance fields
.field public final d:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"TT;>;"
}
.end annotation
.end field
2020-05-17 12:40:10 +00:00
# direct methods
2020-09-16 23:45:23 +00:00
.method public constructor <init>(Ljava/util/List;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"TT;>;)V"
}
.end annotation
const-string v0, "delegate"
2020-05-17 12:40:10 +00:00
2020-09-29 21:44:44 +00:00
invoke-static {p1, v0}, Lb0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
invoke-direct {p0}, Ljava/util/AbstractList;-><init>()V
2020-09-29 21:44:44 +00:00
iput-object p1, p0, Lb0/i/q;->d:Ljava/util/List;
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
2020-09-16 23:45:23 +00:00
.method public add(ILjava/lang/Object;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(ITT;)V"
}
.end annotation
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lb0/i/q;->d:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lb0/i/q;->size()I
2020-09-16 23:45:23 +00:00
move-result v1
if-ltz p1, :cond_0
if-lt v1, p1, :cond_0
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lb0/i/q;->size()I
2020-09-16 23:45:23 +00:00
move-result v1
sub-int/2addr v1, p1
invoke-interface {v0, v1, p2}, Ljava/util/List;->add(ILjava/lang/Object;)V
return-void
:cond_0
new-instance p2, Ljava/lang/IndexOutOfBoundsException;
const-string v0, "Position index "
const-string v1, " must be in range ["
2020-10-01 23:55:10 +00:00
invoke-static {v0, p1, v1}, Lf/e/c/a/a;->F(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
move-result-object p1
const/4 v0, 0x0
new-instance v1, Lkotlin/ranges/IntRange;
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lb0/i/q;->size()I
2020-09-16 23:45:23 +00:00
move-result v2
invoke-direct {v1, v0, v2}, Lkotlin/ranges/IntRange;-><init>(II)V
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, "]."
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public clear()V
2020-09-09 19:21:20 +00:00
.locals 1
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lb0/i/q;->d:Ljava/util/List;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-interface {v0}, Ljava/util/List;->clear()V
return-void
.end method
.method public get(I)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TT;"
}
.end annotation
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lb0/i/q;->d:Ljava/util/List;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-static {p0, p1}, Lf/h/a/f/e/n/f;->access$reverseElementIndex(Ljava/util/List;I)I
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
move-result p1
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
return-object p1
2020-05-17 12:40:10 +00:00
.end method
2020-09-16 23:45:23 +00:00
.method public final remove(I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
.locals 1
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lb0/i/q;->d:Ljava/util/List;
2020-09-16 23:45:23 +00:00
invoke-static {p0, p1}, Lf/h/a/f/e/n/f;->access$reverseElementIndex(Ljava/util/List;I)I
move-result p1
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-interface {v0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
move-result-object p1
return-object p1
2020-05-17 12:40:10 +00:00
.end method
2020-09-16 23:45:23 +00:00
.method public set(ILjava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(ITT;)TT;"
}
.end annotation
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lb0/i/q;->d:Ljava/util/List;
2020-09-16 23:45:23 +00:00
invoke-static {p0, p1}, Lf/h/a/f/e/n/f;->access$reverseElementIndex(Ljava/util/List;I)I
move-result p1
invoke-interface {v0, p1, p2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
2020-05-17 12:40:10 +00:00
.end method
2020-09-16 23:45:23 +00:00
.method public final size()I
.locals 1
2020-05-17 12:40:10 +00:00
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lb0/i/q;->d:Ljava/util/List;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-interface {v0}, Ljava/util/List;->size()I
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
return v0
2020-05-17 12:40:10 +00:00
.end method