.class Lcom/google/common/collect/CompactHashSet$1; .super Ljava/lang/Object; .source "CompactHashSet.java" # interfaces .implements Ljava/util/Iterator; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/google/common/collect/CompactHashSet;->iterator()Ljava/util/Iterator; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Ljava/util/Iterator<", "TE;>;" } .end annotation # instance fields .field currentIndex:I .field expectedMetadata:I .field indexToRemove:I .field final synthetic this$0:Lcom/google/common/collect/CompactHashSet; # direct methods .method constructor (Lcom/google/common/collect/CompactHashSet;)V .locals 1 iput-object p1, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet; .line 544 invoke-direct {p0}, Ljava/lang/Object;->()V .line 545 invoke-static {p1}, Lcom/google/common/collect/CompactHashSet;->access$000(Lcom/google/common/collect/CompactHashSet;)I move-result v0 iput v0, p0, Lcom/google/common/collect/CompactHashSet$1;->expectedMetadata:I .line 546 invoke-virtual {p1}, Lcom/google/common/collect/CompactHashSet;->firstEntryIndex()I move-result p1 iput p1, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I const/4 p1, -0x1 iput p1, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I return-void .end method .method private checkForConcurrentModification()V .locals 1 iget-object v0, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet; .line 582 invoke-static {v0}, Lcom/google/common/collect/CompactHashSet;->access$000(Lcom/google/common/collect/CompactHashSet;)I move-result v0 iget p0, p0, Lcom/google/common/collect/CompactHashSet$1;->expectedMetadata:I if-ne v0, p0, :cond_0 return-void .line 583 :cond_0 new-instance p0, Ljava/util/ConcurrentModificationException; invoke-direct {p0}, Ljava/util/ConcurrentModificationException;->()V throw p0 .end method # virtual methods .method public hasNext()Z .locals 0 iget p0, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I if-ltz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method incrementExpectedModCount()V .locals 1 iget v0, p0, Lcom/google/common/collect/CompactHashSet$1;->expectedMetadata:I add-int/lit8 v0, v0, 0x20 iput v0, p0, Lcom/google/common/collect/CompactHashSet$1;->expectedMetadata:I return-void .end method .method public next()Ljava/lang/Object; .locals 3 .annotation runtime Lcom/google/common/collect/ParametricNullness; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "()TE;" } .end annotation .line 557 invoke-direct {p0}, Lcom/google/common/collect/CompactHashSet$1;->checkForConcurrentModification()V .line 558 invoke-virtual {p0}, Lcom/google/common/collect/CompactHashSet$1;->hasNext()Z move-result v0 if-eqz v0, :cond_0 iget v0, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I iput v0, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I iget-object v1, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet; .line 562 invoke-static {v1, v0}, Lcom/google/common/collect/CompactHashSet;->access$100(Lcom/google/common/collect/CompactHashSet;I)Ljava/lang/Object; move-result-object v0 iget-object v1, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet; iget v2, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I .line 563 invoke-virtual {v1, v2}, Lcom/google/common/collect/CompactHashSet;->getSuccessor(I)I move-result v1 iput v1, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I return-object v0 .line 559 :cond_0 new-instance p0, Ljava/util/NoSuchElementException; invoke-direct {p0}, Ljava/util/NoSuchElementException;->()V throw p0 .end method .method public remove()V .locals 3 .line 569 invoke-direct {p0}, Lcom/google/common/collect/CompactHashSet$1;->checkForConcurrentModification()V iget v0, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I if-ltz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 .line 570 :goto_0 invoke-static {v0}, Lcom/google/common/collect/CollectPreconditions;->checkRemove(Z)V .line 571 invoke-virtual {p0}, Lcom/google/common/collect/CompactHashSet$1;->incrementExpectedModCount()V iget-object v0, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet; iget v1, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I .line 572 invoke-static {v0, v1}, Lcom/google/common/collect/CompactHashSet;->access$100(Lcom/google/common/collect/CompactHashSet;I)Ljava/lang/Object; move-result-object v1 invoke-virtual {v0, v1}, Lcom/google/common/collect/CompactHashSet;->remove(Ljava/lang/Object;)Z iget-object v0, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet; iget v1, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I iget v2, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I .line 573 invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/CompactHashSet;->adjustAfterRemove(II)I move-result v0 iput v0, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I const/4 v0, -0x1 iput v0, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I return-void .end method