.class public final Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator; .super Ljava/lang/Object; .source "SparseMutableList.kt" # interfaces .implements Ljava/util/ListIterator; .implements Lz/n/c/x/a; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/discord/utilities/collections/SparseMutableList; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "SparseMutableListIterator" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Ljava/util/ListIterator<", "TT;>;", "Ljava/lang/Object;" } .end annotation # instance fields .field public index:I .field public final sparseMutableList:Lcom/discord/utilities/collections/SparseMutableList; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/discord/utilities/collections/SparseMutableList<", "TT;>;" } .end annotation .end field # direct methods .method public constructor (Lcom/discord/utilities/collections/SparseMutableList;I)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/discord/utilities/collections/SparseMutableList<", "TT;>;I)V" } .end annotation const-string v0, "sparseMutableList" invoke-static {p1, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->sparseMutableList:Lcom/discord/utilities/collections/SparseMutableList; iput p2, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I return-void .end method .method public synthetic constructor (Lcom/discord/utilities/collections/SparseMutableList;IILkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_0 const/4 p2, -0x1 :cond_0 invoke-direct {p0, p1, p2}, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->(Lcom/discord/utilities/collections/SparseMutableList;I)V return-void .end method # virtual methods .method public add(Ljava/lang/Object;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation new-instance p1, Ljava/lang/UnsupportedOperationException; const-string v0, "add not supported during iteration" invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;->(Ljava/lang/String;)V throw p1 .end method .method public final getIndex()I .locals 1 iget v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I return v0 .end method .method public hasNext()Z .locals 2 invoke-virtual {p0}, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->nextIndex()I move-result v0 iget-object v1, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->sparseMutableList:Lcom/discord/utilities/collections/SparseMutableList; invoke-static {v1}, Lf/h/a/f/f/n/f;->getLastIndex(Ljava/util/List;)I move-result v1 if-ge v0, v1, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public hasPrevious()Z .locals 1 iget v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I if-lez v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public next()Ljava/lang/Object; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation iget v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I iget-object v1, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->sparseMutableList:Lcom/discord/utilities/collections/SparseMutableList; invoke-virtual {v1, v0}, Lcom/discord/utilities/collections/SparseMutableList;->get(I)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method public nextIndex()I .locals 1 iget v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I add-int/lit8 v0, v0, 0x1 return v0 .end method .method public previous()Ljava/lang/Object; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation iget v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I add-int/lit8 v0, v0, -0x1 iput v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I iget-object v1, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->sparseMutableList:Lcom/discord/utilities/collections/SparseMutableList; invoke-virtual {v1, v0}, Lcom/discord/utilities/collections/SparseMutableList;->get(I)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method public previousIndex()I .locals 1 iget v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I add-int/lit8 v0, v0, -0x1 return v0 .end method .method public remove()V .locals 2 iget-object v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->sparseMutableList:Lcom/discord/utilities/collections/SparseMutableList; iget v1, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I invoke-virtual {v0, v1}, Lcom/discord/utilities/collections/SparseMutableList;->remove(I)Ljava/lang/Object; return-void .end method .method public set(Ljava/lang/Object;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation iget-object v0, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->sparseMutableList:Lcom/discord/utilities/collections/SparseMutableList; iget v1, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I invoke-virtual {v0, v1, p1}, Lcom/discord/utilities/collections/SparseMutableList;->set(ILjava/lang/Object;)Ljava/lang/Object; return-void .end method .method public final setIndex(I)V .locals 0 iput p1, p0, Lcom/discord/utilities/collections/SparseMutableList$SparseMutableListIterator;->index:I return-void .end method