206 lines
4.3 KiB
Smali
206 lines
4.3 KiB
Smali
.class public final Lt/q/t;
|
|
.super Ljava/util/AbstractList;
|
|
.source "ReversedViews.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/List;
|
|
.implements Lt/u/b/z/d;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lt/q/t<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/util/AbstractList;-><init>()V
|
|
|
|
iput-object p1, p0, Lt/q/t;->d:Ljava/util/List;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "delegate"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public add(ILjava/lang/Object;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(ITT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lt/q/t;->d:Ljava/util/List;
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
if-lt v1, p1, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
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 ["
|
|
|
|
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-instance v1, Lkotlin/ranges/IntRange;
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
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
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lt/q/t;->d:Ljava/util/List;
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Lt/q/t;->d:Ljava/util/List;
|
|
|
|
invoke-static {p0, p1}, Le/k/a/b/e/p/g;->access$reverseElementIndex(Ljava/util/List;I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final remove(I)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lt/q/t;->d:Ljava/util/List;
|
|
|
|
invoke-static {p0, p1}, Le/k/a/b/e/p/g;->access$reverseElementIndex(Ljava/util/List;I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public set(ILjava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(ITT;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lt/q/t;->d:Ljava/util/List;
|
|
|
|
invoke-static {p0, p1}, Le/k/a/b/e/p/g;->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
|
|
.end method
|
|
|
|
.method public final size()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lt/q/t;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|