.class public abstract Lkotlin/collections/AbstractIterator; .super Ljava/lang/Object; .source "AbstractIterator.kt" # interfaces .implements Ljava/util/Iterator; .implements Lkotlin/jvm/internal/markers/KMappedMarker; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lkotlin/collections/AbstractIterator$WhenMappings; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Ljava/util/Iterator<", "TT;>;", "Lkotlin/jvm/internal/markers/KMappedMarker;" } .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000$\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010(\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0007\u0008&\u0018\u0000*\u0004\u0008\u0000\u0010\u00012\u0008\u0012\u0004\u0012\u0002H\u00010\u0002B\u0005\u00a2\u0006\u0002\u0010\u0003J\u0008\u0010\u0008\u001a\u00020\tH$J\u0008\u0010\n\u001a\u00020\tH\u0004J\t\u0010\u000b\u001a\u00020\u000cH\u0096\u0002J\u000e\u0010\r\u001a\u00028\u0000H\u0096\u0002\u00a2\u0006\u0002\u0010\u000eJ\u0015\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0010\u001a\u00028\u0000H\u0004\u00a2\u0006\u0002\u0010\u0011J\u0008\u0010\u0012\u001a\u00020\u000cH\u0002R\u0012\u0010\u0004\u001a\u0004\u0018\u00018\u0000X\u0082\u000e\u00a2\u0006\u0004\n\u0002\u0010\u0005R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0013" } d2 = { "Lkotlin/collections/AbstractIterator;", "T", "", "()V", "nextValue", "Ljava/lang/Object;", "state", "Lkotlin/collections/State;", "computeNext", "", "done", "hasNext", "", "next", "()Ljava/lang/Object;", "setNext", "value", "(Ljava/lang/Object;)V", "tryToComputeNext", "kotlin-stdlib" } k = 0x1 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # instance fields .field private nextValue:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TT;" } .end annotation .end field .field private state:Lkotlin/collections/State; # direct methods .method public constructor ()V .locals 1 .line 20 invoke-direct {p0}, Ljava/lang/Object;->()V .line 21 sget-object v0, Lkotlin/collections/State;->NotReady:Lkotlin/collections/State; iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; return-void .end method .method private final tryToComputeNext()Z .locals 1 .line 41 sget-object v0, Lkotlin/collections/State;->Failed:Lkotlin/collections/State; iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; .line 42 invoke-virtual {p0}, Lkotlin/collections/AbstractIterator;->computeNext()V iget-object p0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; .line 43 sget-object v0, Lkotlin/collections/State;->Ready:Lkotlin/collections/State; if-ne p0, v0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method # virtual methods .method protected abstract computeNext()V .end method .method protected final done()V .locals 1 .line 70 sget-object v0, Lkotlin/collections/State;->Done:Lkotlin/collections/State; iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; return-void .end method .method public hasNext()Z .locals 3 iget-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; .line 25 sget-object v1, Lkotlin/collections/State;->Failed:Lkotlin/collections/State; if-eq v0, v1, :cond_2 iget-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; .line 26 sget-object v1, Lkotlin/collections/AbstractIterator$WhenMappings;->$EnumSwitchMapping$0:[I invoke-virtual {v0}, Lkotlin/collections/State;->ordinal()I move-result v0 aget v0, v1, v0 const/4 v1, 0x1 if-eq v0, v1, :cond_0 const/4 v2, 0x2 if-eq v0, v2, :cond_1 .line 29 invoke-direct {p0}, Lkotlin/collections/AbstractIterator;->tryToComputeNext()Z move-result v1 goto :goto_0 :cond_0 const/4 v1, 0x0 :cond_1 :goto_0 return v1 .line 25 :cond_2 new-instance p0, Ljava/lang/IllegalArgumentException; const-string v0, "Failed requirement." invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method .method public next()Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation .line 34 invoke-virtual {p0}, Lkotlin/collections/AbstractIterator;->hasNext()Z move-result v0 if-eqz v0, :cond_0 .line 35 sget-object v0, Lkotlin/collections/State;->NotReady:Lkotlin/collections/State; iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; iget-object p0, p0, Lkotlin/collections/AbstractIterator;->nextValue:Ljava/lang/Object; return-object p0 .line 34 :cond_0 new-instance p0, Ljava/util/NoSuchElementException; invoke-direct {p0}, Ljava/util/NoSuchElementException;->()V throw p0 .end method .method public remove()V .locals 1 new-instance p0, Ljava/lang/UnsupportedOperationException; const-string v0, "Operation is not supported for read-only collection" invoke-direct {p0, v0}, Ljava/lang/UnsupportedOperationException;->(Ljava/lang/String;)V throw p0 .end method .method protected final setNext(Ljava/lang/Object;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation iput-object p1, p0, Lkotlin/collections/AbstractIterator;->nextValue:Ljava/lang/Object; .line 63 sget-object p1, Lkotlin/collections/State;->Ready:Lkotlin/collections/State; iput-object p1, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State; return-void .end method