166 lines
2.9 KiB
Smali
166 lines
2.9 KiB
Smali
|
.class public abstract Ly/q/c;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "AbstractIterator.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/util/Iterator;
|
||
|
.implements Ly/v/b/a0/a;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Ljava/lang/Object;",
|
||
|
"Ljava/util/Iterator<",
|
||
|
"TT;>;",
|
||
|
"Ly/v/b/a0/a;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public d:Ly/q/w;
|
||
|
|
||
|
.field public e:Ljava/lang/Object;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"TT;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
sget-object v0, Ly/q/w;->e:Ly/q/w;
|
||
|
|
||
|
iput-object v0, p0, Ly/q/c;->d:Ly/q/w;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public abstract a()V
|
||
|
.end method
|
||
|
|
||
|
.method public hasNext()Z
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Ly/q/c;->d:Ly/q/w;
|
||
|
|
||
|
sget-object v1, Ly/q/w;->g:Ly/q/w;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
if-eq v0, v1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
iget-object v0, p0, Ly/q/c;->d:Ly/q/w;
|
||
|
|
||
|
sget-object v1, Ly/q/b;->a:[I
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
aget v0, v1, v0
|
||
|
|
||
|
if-eq v0, v3, :cond_2
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
if-eq v0, v1, :cond_1
|
||
|
|
||
|
sget-object v0, Ly/q/w;->g:Ly/q/w;
|
||
|
|
||
|
iput-object v0, p0, Ly/q/c;->d:Ly/q/w;
|
||
|
|
||
|
invoke-virtual {p0}, Ly/q/c;->a()V
|
||
|
|
||
|
iget-object v0, p0, Ly/q/c;->d:Ly/q/w;
|
||
|
|
||
|
sget-object v1, Ly/q/w;->d:Ly/q/w;
|
||
|
|
||
|
if-ne v0, v1, :cond_2
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
:cond_2
|
||
|
return v2
|
||
|
|
||
|
:cond_3
|
||
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string v1, "Failed requirement."
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public next()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()TT;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Ly/q/c;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
sget-object v0, Ly/q/w;->e:Ly/q/w;
|
||
|
|
||
|
iput-object v0, p0, Ly/q/c;->d:Ly/q/w;
|
||
|
|
||
|
iget-object v0, p0, Ly/q/c;->e:Ljava/lang/Object;
|
||
|
|
||
|
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 remove()V
|
||
|
.locals 2
|
||
|
|
||
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
const-string v1, "Operation is not supported for read-only collection"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|