195 lines
3.9 KiB
Smali
195 lines
3.9 KiB
Smali
.class public final Ly/a0/c;
|
|
.super Ljava/lang/Object;
|
|
.source "Sequences.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/sequences/Sequence;
|
|
.implements Ly/a0/d;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;",
|
|
"Ly/a0/d<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lkotlin/sequences/Sequence;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/sequences/Sequence;I)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"+TT;>;I)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Ly/a0/c;->a:Lkotlin/sequences/Sequence;
|
|
|
|
iput p2, p0, Ly/a0/c;->b:I
|
|
|
|
iget p1, p0, Ly/a0/c;->b:I
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "count must be non-negative, but was "
|
|
|
|
invoke-static {p1}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
iget p2, p0, Ly/a0/c;->b:I
|
|
|
|
const/16 v0, 0x2e
|
|
|
|
invoke-static {p1, p2, v0}, Lf/e/b/a/a;->a(Ljava/lang/StringBuilder;IC)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
|
|
:cond_2
|
|
const-string p1, "sequence"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public drop(I)Lkotlin/sequences/Sequence;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Ly/a0/c;->b:I
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
new-instance v0, Ly/a0/c;
|
|
|
|
invoke-direct {v0, p0, p1}, Ly/a0/c;-><init>(Lkotlin/sequences/Sequence;I)V
|
|
|
|
move-object p1, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ly/a0/c;
|
|
|
|
iget-object v1, p0, Ly/a0/c;->a:Lkotlin/sequences/Sequence;
|
|
|
|
invoke-direct {p1, v1, v0}, Ly/a0/c;-><init>(Lkotlin/sequences/Sequence;I)V
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public iterator()Ljava/util/Iterator;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ly/a0/c$a;
|
|
|
|
invoke-direct {v0, p0}, Ly/a0/c$a;-><init>(Ly/a0/c;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public take(I)Lkotlin/sequences/Sequence;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Ly/a0/c;->b:I
|
|
|
|
add-int v1, v0, p1
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
new-instance v0, Ly/a0/r;
|
|
|
|
invoke-direct {v0, p0, p1}, Ly/a0/r;-><init>(Lkotlin/sequences/Sequence;I)V
|
|
|
|
move-object p1, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ly/a0/q;
|
|
|
|
iget-object v2, p0, Ly/a0/c;->a:Lkotlin/sequences/Sequence;
|
|
|
|
invoke-direct {p1, v2, v0, v1}, Ly/a0/q;-><init>(Lkotlin/sequences/Sequence;II)V
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|