198 lines
4.3 KiB
Smali
198 lines
4.3 KiB
Smali
.class public final Lkotlin/sequences/o$a;
|
|
.super Ljava/lang/Object;
|
|
.source "Sequences.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Iterator;
|
|
.implements Lkotlin/jvm/internal/a/a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lkotlin/sequences/o;->iterator()Ljava/util/Iterator;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;",
|
|
"Lkotlin/jvm/internal/a/a;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final abi:Ljava/util/Iterator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final synthetic blY:Lkotlin/sequences/o;
|
|
|
|
.field private position:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lkotlin/sequences/o;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lkotlin/sequences/o$a;->blY:Lkotlin/sequences/o;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {p1}, Lkotlin/sequences/o;->c(Lkotlin/sequences/o;)Lkotlin/sequences/Sequence;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lkotlin/sequences/o$a;->abi:Ljava/util/Iterator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final drop()V
|
|
.locals 2
|
|
|
|
:goto_0
|
|
iget v0, p0, Lkotlin/sequences/o$a;->position:I
|
|
|
|
iget-object v1, p0, Lkotlin/sequences/o$a;->blY:Lkotlin/sequences/o;
|
|
|
|
invoke-static {v1}, Lkotlin/sequences/o;->a(Lkotlin/sequences/o;)I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lkotlin/sequences/o$a;->abi:Ljava/util/Iterator;
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lkotlin/sequences/o$a;->abi:Ljava/util/Iterator;
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
iget v0, p0, Lkotlin/sequences/o$a;->position:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lkotlin/sequences/o$a;->position:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final hasNext()Z
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Lkotlin/sequences/o$a;->drop()V
|
|
|
|
iget v0, p0, Lkotlin/sequences/o$a;->position:I
|
|
|
|
iget-object v1, p0, Lkotlin/sequences/o$a;->blY:Lkotlin/sequences/o;
|
|
|
|
invoke-static {v1}, Lkotlin/sequences/o;->b(Lkotlin/sequences/o;)I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lkotlin/sequences/o$a;->abi:Ljava/util/Iterator;
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final next()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lkotlin/sequences/o$a;->drop()V
|
|
|
|
iget v0, p0, Lkotlin/sequences/o$a;->position:I
|
|
|
|
iget-object v1, p0, Lkotlin/sequences/o$a;->blY:Lkotlin/sequences/o;
|
|
|
|
invoke-static {v1}, Lkotlin/sequences/o;->b(Lkotlin/sequences/o;)I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget v0, p0, Lkotlin/sequences/o$a;->position:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lkotlin/sequences/o$a;->position:I
|
|
|
|
iget-object v0, p0, Lkotlin/sequences/o$a;->abi:Ljava/util/Iterator;
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()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
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final 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
|