apkfuckery/com.discord/smali/androidx/collection/MapCollections$ArrayIterator.smali

170 lines
4.1 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Landroidx/collection/MapCollections$ArrayIterator;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "MapCollections.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/collection/MapCollections;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x11
2019-07-24 11:27:29 +00:00
name = "ArrayIterator"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mCanRemove:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIndex:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mOffset:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mSize:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Landroidx/collection/MapCollections;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/collection/MapCollections;I)V
2019-07-24 11:27:29 +00:00
.locals 1
iput-object p1, p0, Landroidx/collection/MapCollections$ArrayIterator;->this$0:Landroidx/collection/MapCollections;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
iput p2, p0, Landroidx/collection/MapCollections$ArrayIterator;->mOffset:I
invoke-virtual {p1}, Landroidx/collection/MapCollections;->colGetSize()I
move-result p1
iput p1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public hasNext()Z
2019-07-24 11:27:29 +00:00
.locals 2
iget v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
if-ge v0, v1, :cond_0
const/4 v0, 0x1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public next()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
invoke-virtual {p0}, Landroidx/collection/MapCollections$ArrayIterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->this$0:Landroidx/collection/MapCollections;
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
iget v2, p0, Landroidx/collection/MapCollections$ArrayIterator;->mOffset:I
invoke-virtual {v0, v1, v2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
const/4 v2, 0x1
add-int/2addr v1, v2
iput v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
iput-boolean v2, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
return-object v0
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
2019-12-06 03:29:40 +00:00
.method public remove()V
2019-07-24 11:27:29 +00:00
.locals 2
iget-boolean v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
if-eqz v0, :cond_0
iget v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
add-int/lit8 v0, v0, -0x1
iput v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
iget v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
add-int/lit8 v0, v0, -0x1
iput v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
iget-object v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->this$0:Landroidx/collection/MapCollections;
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
invoke-virtual {v0, v1}, Landroidx/collection/MapCollections;->colRemoveAt(I)V
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
throw v0
.end method