238 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			238 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .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 = 0x1
 | |
|     name = null
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "Ljava/lang/Object;",
 | |
|         "Ljava/util/Iterator<",
 | |
|         "TE;>;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public currentIndex:I
 | |
| 
 | |
| .field public expectedMetadata:I
 | |
| 
 | |
| .field public indexToRemove:I
 | |
| 
 | |
| .field public final synthetic this$0:Lcom/google/common/collect/CompactHashSet;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lcom/google/common/collect/CompactHashSet;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet;
 | |
| 
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     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 3
 | |
|     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
 | |
| 
 | |
|     .line 4
 | |
|     iput p1, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private checkForConcurrentModification()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/common/collect/CompactHashSet;->access$000(Lcom/google/common/collect/CompactHashSet;)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     iget v1, p0, Lcom/google/common/collect/CompactHashSet$1;->expectedMetadata:I
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/ConcurrentModificationException;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/ConcurrentModificationException;-><init>()V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public hasNext()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I
 | |
| 
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public incrementExpectedModCount()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 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 1
 | |
|     invoke-direct {p0}, Lcom/google/common/collect/CompactHashSet$1;->checkForConcurrentModification()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/common/collect/CompactHashSet$1;->hasNext()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget v0, p0, Lcom/google/common/collect/CompactHashSet$1;->currentIndex:I
 | |
| 
 | |
|     iput v0, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v1, p0, Lcom/google/common/collect/CompactHashSet$1;->this$0:Lcom/google/common/collect/CompactHashSet;
 | |
| 
 | |
|     invoke-static {v1, v0}, Lcom/google/common/collect/CompactHashSet;->access$100(Lcom/google/common/collect/CompactHashSet;I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     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
 | |
| 
 | |
|     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 6
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/NoSuchElementException;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public remove()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/common/collect/CompactHashSet$1;->checkForConcurrentModification()V
 | |
| 
 | |
|     .line 2
 | |
|     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
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-static {v0}, Lcom/google/common/collect/CollectPreconditions;->checkRemove(Z)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/common/collect/CompactHashSet$1;->incrementExpectedModCount()V
 | |
| 
 | |
|     .line 4
 | |
|     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
 | |
| 
 | |
|     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
 | |
| 
 | |
|     .line 5
 | |
|     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
 | |
| 
 | |
|     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
 | |
| 
 | |
|     .line 6
 | |
|     iput v0, p0, Lcom/google/common/collect/CompactHashSet$1;->indexToRemove:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 |