123 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			123 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lcom/google/common/math/Quantiles$Scale;
 | |
| .super Ljava/lang/Object;
 | |
| .source "Quantiles.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lcom/google/common/math/Quantiles;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "Scale"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final scale:I
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private constructor <init>(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     if-lez p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     const-string v1, "Quantile scale must be positive"
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
 | |
| 
 | |
|     .line 4
 | |
|     iput p1, p0, Lcom/google/common/math/Quantiles$Scale;->scale:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic constructor <init>(ILcom/google/common/math/Quantiles$1;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1}, Lcom/google/common/math/Quantiles$Scale;-><init>(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public index(I)Lcom/google/common/math/Quantiles$ScaleAndIndex;
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/common/math/Quantiles$ScaleAndIndex;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/common/math/Quantiles$Scale;->scale:I
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v0, v1, p1, v2}, Lcom/google/common/math/Quantiles$ScaleAndIndex;-><init>(IILcom/google/common/math/Quantiles$1;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public indexes(Ljava/util/Collection;)Lcom/google/common/math/Quantiles$ScaleAndIndexes;
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/util/Collection<",
 | |
|             "Ljava/lang/Integer;",
 | |
|             ">;)",
 | |
|             "Lcom/google/common/math/Quantiles$ScaleAndIndexes;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Lcom/google/common/math/Quantiles$ScaleAndIndexes;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/common/math/Quantiles$Scale;->scale:I
 | |
| 
 | |
|     invoke-static {p1}, Lcom/google/common/primitives/Ints;->toArray(Ljava/util/Collection;)[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v0, v1, p1, v2}, Lcom/google/common/math/Quantiles$ScaleAndIndexes;-><init>(I[ILcom/google/common/math/Quantiles$1;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public varargs indexes([I)Lcom/google/common/math/Quantiles$ScaleAndIndexes;
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/common/math/Quantiles$ScaleAndIndexes;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/common/math/Quantiles$Scale;->scale:I
 | |
| 
 | |
|     invoke-virtual {p1}, [I->clone()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, [I
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v0, v1, p1, v2}, Lcom/google/common/math/Quantiles$ScaleAndIndexes;-><init>(I[ILcom/google/common/math/Quantiles$1;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 |