apkfuckery/com.discord/smali_classes2/y/i/c$c.smali
2020-11-09 19:03:49 +00:00

172 lines
3.5 KiB
Smali

.class public final Ly/i/c$c;
.super Ly/i/c;
.source "AbstractList.kt"
# interfaces
.implements Ljava/util/RandomAccess;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/i/c;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "c"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Ly/i/c<",
"TE;>;",
"Ljava/util/RandomAccess;"
}
.end annotation
# instance fields
.field public d:I
.field public final e:Ly/i/c;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ly/i/c<",
"TE;>;"
}
.end annotation
.end field
.field public final f:I
# direct methods
.method public constructor <init>(Ly/i/c;II)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ly/i/c<",
"+TE;>;II)V"
}
.end annotation
const-string v0, "list"
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ly/i/c;-><init>()V
iput-object p1, p0, Ly/i/c$c;->e:Ly/i/c;
iput p2, p0, Ly/i/c$c;->f:I
invoke-virtual {p1}, Ly/i/a;->getSize()I
move-result p1
const-string v0, "fromIndex: "
if-ltz p2, :cond_1
if-gt p3, p1, :cond_1
if-gt p2, p3, :cond_0
iget p1, p0, Ly/i/c$c;->f:I
sub-int/2addr p3, p1
iput p3, p0, Ly/i/c$c;->d:I
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v1, " > toIndex: "
invoke-static {v0, p2, v1, p3}, Lf/e/c/a/a;->k(Ljava/lang/String;ILjava/lang/String;I)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance v1, Ljava/lang/IndexOutOfBoundsException;
const-string v2, ", toIndex: "
const-string v3, ", size: "
invoke-static {v0, p2, v2, p3, v3}, Lf/e/c/a/a;->G(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v1, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v1
.end method
# virtual methods
.method public get(I)Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TE;"
}
.end annotation
iget v0, p0, Ly/i/c$c;->d:I
if-ltz p1, :cond_0
if-ge p1, v0, :cond_0
iget-object v0, p0, Ly/i/c$c;->e:Ly/i/c;
iget v1, p0, Ly/i/c$c;->f:I
add-int/2addr v1, p1
invoke-virtual {v0, v1}, Ly/i/c;->get(I)Ljava/lang/Object;
move-result-object p1
return-object p1
:cond_0
new-instance v1, Ljava/lang/IndexOutOfBoundsException;
const-string v2, "index: "
const-string v3, ", size: "
invoke-static {v2, p1, v3, v0}, Lf/e/c/a/a;->k(Ljava/lang/String;ILjava/lang/String;I)Ljava/lang/String;
move-result-object p1
invoke-direct {v1, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public getSize()I
.locals 1
iget v0, p0, Ly/i/c$c;->d:I
return v0
.end method