apkfuckery/com.discord/smali_classes2/c0/i/c$b.smali
2020-10-05 23:18:16 +00:00

182 lines
3.5 KiB
Smali

.class public Lc0/i/c$b;
.super Lc0/i/c$a;
.source "AbstractList.kt"
# interfaces
.implements Ljava/util/ListIterator;
.implements Lc0/n/c/x/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lc0/i/c;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "b"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lc0/i/c<",
"TE;>.a;",
"Ljava/util/ListIterator<",
"TE;>;",
"Lc0/n/c/x/a;"
}
.end annotation
# instance fields
.field public final synthetic f:Lc0/i/c;
# direct methods
.method public constructor <init>(Lc0/i/c;I)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
iput-object p1, p0, Lc0/i/c$b;->f:Lc0/i/c;
invoke-direct {p0, p1}, Lc0/i/c$a;-><init>(Lc0/i/c;)V
invoke-virtual {p1}, Lc0/i/a;->getSize()I
move-result p1
if-ltz p2, :cond_0
if-gt p2, p1, :cond_0
iput p2, p0, Lc0/i/c$a;->d:I
return-void
:cond_0
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
const-string v1, "index: "
const-string v2, ", size: "
invoke-static {v1, p2, v2, p1}, Lf/e/c/a/a;->k(Ljava/lang/String;ILjava/lang/String;I)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v0
.end method
# virtual methods
.method public add(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TE;)V"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public hasPrevious()Z
.locals 1
iget v0, p0, Lc0/i/c$a;->d:I
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public nextIndex()I
.locals 1
iget v0, p0, Lc0/i/c$a;->d:I
return v0
.end method
.method public previous()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TE;"
}
.end annotation
invoke-virtual {p0}, Lc0/i/c$b;->hasPrevious()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lc0/i/c$b;->f:Lc0/i/c;
iget v1, p0, Lc0/i/c$a;->d:I
add-int/lit8 v1, v1, -0x1
iput v1, p0, Lc0/i/c$a;->d:I
invoke-virtual {v0, v1}, Lc0/i/c;->get(I)Ljava/lang/Object;
move-result-object v0
return-object v0
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
.method public previousIndex()I
.locals 1
iget v0, p0, Lc0/i/c$a;->d:I
add-int/lit8 v0, v0, -0x1
return v0
.end method
.method public set(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TE;)V"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method