126 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			126 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/common/collect/Interners$InternerBuilder;
 | |
| .super Ljava/lang/Object;
 | |
| .source "Interners.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lcom/google/common/collect/Interners;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x9
 | |
|     name = "InternerBuilder"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final mapMaker:Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
| .field private strong:Z
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private constructor <init>()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
|     invoke-direct {v0}, Lcom/google/common/collect/MapMaker;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/common/collect/Interners$InternerBuilder;->mapMaker:Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean v0, p0, Lcom/google/common/collect/Interners$InternerBuilder;->strong:Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic constructor <init>(Lcom/google/common/collect/Interners$1;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/common/collect/Interners$InternerBuilder;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public build()Lcom/google/common/collect/Interner;
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">()",
 | |
|             "Lcom/google/common/collect/Interner<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/common/collect/Interners$InternerBuilder;->strong:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/common/collect/Interners$InternerBuilder;->mapMaker:Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/common/collect/MapMaker;->weakKeys()Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance v0, Lcom/google/common/collect/Interners$InternerImpl;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/common/collect/Interners$InternerBuilder;->mapMaker:Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v0, v1, v2}, Lcom/google/common/collect/Interners$InternerImpl;-><init>(Lcom/google/common/collect/MapMaker;Lcom/google/common/collect/Interners$1;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public concurrencyLevel(I)Lcom/google/common/collect/Interners$InternerBuilder;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/common/collect/Interners$InternerBuilder;->mapMaker:Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/common/collect/MapMaker;->concurrencyLevel(I)Lcom/google/common/collect/MapMaker;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public strong()Lcom/google/common/collect/Interners$InternerBuilder;
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean v0, p0, Lcom/google/common/collect/Interners$InternerBuilder;->strong:Z
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public weak()Lcom/google/common/collect/Interners$InternerBuilder;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|         value = "java.lang.ref.WeakReference"
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean v0, p0, Lcom/google/common/collect/Interners$InternerBuilder;->strong:Z
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 |