.class public final Lkotlin/sequences/SubSequence; .super Ljava/lang/Object; .source "Sequences.kt" # interfaces .implements Lkotlin/sequences/Sequence; .implements Lkotlin/sequences/DropTakeSequence; # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Lkotlin/sequences/Sequence<", "TT;>;", "Lkotlin/sequences/DropTakeSequence<", "TT;>;" } .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nSequences.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Sequences.kt\nkotlin/sequences/SubSequence\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,680:1\n1#2:681\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0008\n\u0002\u0010(\n\u0002\u0008\u0002\u0008\u0000\u0018\u0000*\u0004\u0008\u0000\u0010\u00012\u0008\u0012\u0004\u0012\u0002H\u00010\u00022\u0008\u0012\u0004\u0012\u0002H\u00010\u0003B#\u0012\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0008J\u0016\u0010\u000c\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0016J\u000f\u0010\u000e\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u000fH\u0096\u0002J\u0016\u0010\u0010\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0016R\u0014\u0010\t\u001a\u00020\u00068BX\u0082\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\n\u0010\u000bR\u000e\u0010\u0007\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0002X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0011" } d2 = { "Lkotlin/sequences/SubSequence;", "T", "Lkotlin/sequences/Sequence;", "Lkotlin/sequences/DropTakeSequence;", "sequence", "startIndex", "", "endIndex", "(Lkotlin/sequences/Sequence;II)V", "count", "getCount", "()I", "drop", "n", "iterator", "", "take", "kotlin-stdlib" } k = 0x1 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # instance fields .field private final endIndex:I .field private final sequence:Lkotlin/sequences/Sequence; .annotation system Ldalvik/annotation/Signature; value = { "Lkotlin/sequences/Sequence<", "TT;>;" } .end annotation .end field .field private final startIndex:I # direct methods .method public constructor (Lkotlin/sequences/Sequence;II)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkotlin/sequences/Sequence<", "+TT;>;II)V" } .end annotation const-string v0, "sequence" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 348 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence; iput p2, p0, Lkotlin/sequences/SubSequence;->startIndex:I iput p3, p0, Lkotlin/sequences/SubSequence;->endIndex:I if-ltz p2, :cond_2 if-ltz p3, :cond_1 if-lt p3, p2, :cond_0 return-void .line 357 :cond_0 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "endIndex should be not less than startIndex, but was " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const-string p1, " < " invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 356 :cond_1 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "endIndex should be non-negative, but is " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 355 :cond_2 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "startIndex should be non-negative, but is " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public static final synthetic access$getEndIndex$p(Lkotlin/sequences/SubSequence;)I .locals 0 .line 348 iget p0, p0, Lkotlin/sequences/SubSequence;->endIndex:I return p0 .end method .method public static final synthetic access$getSequence$p(Lkotlin/sequences/SubSequence;)Lkotlin/sequences/Sequence; .locals 0 .line 348 iget-object p0, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence; return-object p0 .end method .method public static final synthetic access$getStartIndex$p(Lkotlin/sequences/SubSequence;)I .locals 0 .line 348 iget p0, p0, Lkotlin/sequences/SubSequence;->startIndex:I return p0 .end method .method private final getCount()I .locals 1 iget v0, p0, Lkotlin/sequences/SubSequence;->endIndex:I iget p0, p0, Lkotlin/sequences/SubSequence;->startIndex:I sub-int/2addr v0, p0 return v0 .end method # virtual methods .method public drop(I)Lkotlin/sequences/Sequence; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(I)", "Lkotlin/sequences/Sequence<", "TT;>;" } .end annotation .line 362 invoke-direct {p0}, Lkotlin/sequences/SubSequence;->getCount()I move-result v0 if-lt p1, v0, :cond_0 invoke-static {}, Lkotlin/sequences/SequencesKt;->emptySequence()Lkotlin/sequences/Sequence; move-result-object p0 goto :goto_0 :cond_0 new-instance v0, Lkotlin/sequences/SubSequence; iget-object v1, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence; iget v2, p0, Lkotlin/sequences/SubSequence;->startIndex:I add-int/2addr v2, p1 iget p0, p0, Lkotlin/sequences/SubSequence;->endIndex:I invoke-direct {v0, v1, v2, p0}, Lkotlin/sequences/SubSequence;->(Lkotlin/sequences/Sequence;II)V move-object p0, v0 check-cast p0, Lkotlin/sequences/Sequence; :goto_0 return-object p0 .end method .method public iterator()Ljava/util/Iterator; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Iterator<", "TT;>;" } .end annotation .line 365 new-instance v0, Lkotlin/sequences/SubSequence$iterator$1; invoke-direct {v0, p0}, Lkotlin/sequences/SubSequence$iterator$1;->(Lkotlin/sequences/SubSequence;)V check-cast v0, Ljava/util/Iterator; return-object v0 .end method .method public take(I)Lkotlin/sequences/Sequence; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(I)", "Lkotlin/sequences/Sequence<", "TT;>;" } .end annotation .line 363 invoke-direct {p0}, Lkotlin/sequences/SubSequence;->getCount()I move-result v0 if-lt p1, v0, :cond_0 check-cast p0, Lkotlin/sequences/Sequence; goto :goto_0 :cond_0 new-instance v0, Lkotlin/sequences/SubSequence; iget-object v1, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence; iget p0, p0, Lkotlin/sequences/SubSequence;->startIndex:I add-int/2addr p1, p0 invoke-direct {v0, v1, p0, p1}, Lkotlin/sequences/SubSequence;->(Lkotlin/sequences/Sequence;II)V move-object p0, v0 check-cast p0, Lkotlin/sequences/Sequence; :goto_0 return-object p0 .end method