971 lines
		
	
	
		
			19 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			971 lines
		
	
	
		
			19 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lcom/google/common/primitives/Doubles;
 | |
| .super Lcom/google/common/primitives/DoublesMethodsForWeb;
 | |
| .source "Doubles.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Lcom/google/common/annotations/GwtCompatible;
 | |
|     emulated = true
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lcom/google/common/primitives/ElementTypesAreNonnullByDefault;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/common/primitives/Doubles$DoubleArrayAsList;,
 | |
|         Lcom/google/common/primitives/Doubles$LexicographicalComparator;,
 | |
|         Lcom/google/common/primitives/Doubles$DoubleConverter;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final BYTES:I = 0x8
 | |
| 
 | |
| .field public static final FLOATING_POINT_PATTERN:Ljava/util/regex/Pattern;
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/common/primitives/Doubles;->fpPattern()Ljava/util/regex/Pattern;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/primitives/Doubles;->FLOATING_POINT_PATTERN:Ljava/util/regex/Pattern;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/common/primitives/DoublesMethodsForWeb;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$000([DDII)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, p2, p3, p4}, Lcom/google/common/primitives/Doubles;->indexOf([DDII)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$100([DDII)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, p2, p3, p4}, Lcom/google/common/primitives/Doubles;->lastIndexOf([DDII)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static varargs asList([D)Ljava/util/List;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "([D)",
 | |
|             "Ljava/util/List<",
 | |
|             "Ljava/lang/Double;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance v0, Lcom/google/common/primitives/Doubles$DoubleArrayAsList;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/common/primitives/Doubles$DoubleArrayAsList;-><init>([D)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static compare(DD)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, p2, p3}, Ljava/lang/Double;->compare(DD)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static varargs concat([[D)[D
 | |
|     .locals 7
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     move v2, v1
 | |
| 
 | |
|     move v3, v2
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v0, :cond_0
 | |
| 
 | |
|     aget-object v4, p0, v2
 | |
| 
 | |
|     .line 2
 | |
|     array-length v4, v4
 | |
| 
 | |
|     add-int/2addr v3, v4
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-array v0, v3, [D
 | |
| 
 | |
|     .line 4
 | |
|     array-length v2, p0
 | |
| 
 | |
|     move v3, v1
 | |
| 
 | |
|     move v4, v3
 | |
| 
 | |
|     :goto_1
 | |
|     if-ge v3, v2, :cond_1
 | |
| 
 | |
|     aget-object v5, p0, v3
 | |
| 
 | |
|     .line 5
 | |
|     array-length v6, v5
 | |
| 
 | |
|     invoke-static {v5, v1, v0, v4, v6}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     .line 6
 | |
|     array-length v5, v5
 | |
| 
 | |
|     add-int/2addr v4, v5
 | |
| 
 | |
|     add-int/lit8 v3, v3, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static constrainToRange(DDD)D
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/Beta;
 | |
|     .end annotation
 | |
| 
 | |
|     cmpg-double v0, p2, p4
 | |
| 
 | |
|     if-gtz v0, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, p2, p3}, Ljava/lang/Math;->max(DD)D
 | |
| 
 | |
|     move-result-wide p0
 | |
| 
 | |
|     invoke-static {p0, p1, p4, p5}, Ljava/lang/Math;->min(DD)D
 | |
| 
 | |
|     move-result-wide p0
 | |
| 
 | |
|     return-wide p0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     new-instance p0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const/4 p1, 0x2
 | |
| 
 | |
|     new-array p1, p1, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p2, p3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     aput-object p2, p1, v0
 | |
| 
 | |
|     const/4 p2, 0x1
 | |
| 
 | |
|     invoke-static {p4, p5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     aput-object p3, p1, p2
 | |
| 
 | |
|     const-string p2, "min (%s) must be less than or equal to max (%s)"
 | |
| 
 | |
|     invoke-static {p2, p1}, Lcom/google/common/base/Strings;->lenientFormat(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| .method public static contains([DD)Z
 | |
|     .locals 5
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     move v2, v1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v0, :cond_1
 | |
| 
 | |
|     aget-wide v3, p0, v2
 | |
| 
 | |
|     cmpl-double v3, v3, p1
 | |
| 
 | |
|     if-nez v3, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method public static ensureCapacity([DII)[D
 | |
|     .locals 4
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-ltz p1, :cond_0
 | |
| 
 | |
|     move v2, v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     move v2, v1
 | |
| 
 | |
|     :goto_0
 | |
|     const-string v3, "Invalid minLength: %s"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v2, v3, p1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
 | |
| 
 | |
|     if-ltz p2, :cond_1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     move v0, v1
 | |
| 
 | |
|     :goto_1
 | |
|     const-string v1, "Invalid padding: %s"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0, v1, p2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
 | |
| 
 | |
|     .line 3
 | |
|     array-length v0, p0
 | |
| 
 | |
|     if-ge v0, p1, :cond_2
 | |
| 
 | |
|     add-int/2addr p1, p2
 | |
| 
 | |
|     invoke-static {p0, p1}, Ljava/util/Arrays;->copyOf([DI)[D
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     :cond_2
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method private static fpPattern()Ljava/util/regex/Pattern;
 | |
|     .locals 5
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "(?:\\d+#(?:\\.\\d*#)?|\\.\\d+#)"
 | |
| 
 | |
|     const-string v1, "(?:[eE][+-]?\\d+#)?[fFdD]?"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const/16 v1, 0x17
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0, v1}, Lcom/android/billingclient/api/d;->a(Ljava/lang/String;I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const-string v2, "0[xX](?:[0-9a-fA-F]+#(?:\\.[0-9a-fA-F]*#)?|\\.[0-9a-fA-F]+#)[pP][+-]?\\d+#[fFdD]?"
 | |
| 
 | |
|     invoke-static {v2, v1}, Lcom/android/billingclient/api/d;->a(Ljava/lang/String;I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const-string v3, "[+-]?(?:NaN|Infinity|"
 | |
| 
 | |
|     const-string v4, "|"
 | |
| 
 | |
|     invoke-static {v1, v3, v0, v4, v2}, Lcom/google/ads/mediation/a;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-string v1, ")"
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-string v1, "#"
 | |
| 
 | |
|     const-string v2, "+"
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static hashCode(D)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {p0}, Ljava/lang/Double;->hashCode()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static indexOf([DD)I
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-static {p0, p1, p2, v1, v0}, Lcom/google/common/primitives/Doubles;->indexOf([DDII)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method private static indexOf([DDII)I
 | |
|     .locals 2
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge p3, p4, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     aget-wide v0, p0, p3
 | |
| 
 | |
|     cmpl-double v0, v0, p1
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return p3
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 p3, p3, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, -0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static indexOf([D[D)I
 | |
|     .locals 7
 | |
| 
 | |
|     const-string v0, "array"
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p0, v0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     const-string v0, "target"
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 5
 | |
|     array-length v0, p1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return v1
 | |
| 
 | |
|     :cond_0
 | |
|     move v0, v1
 | |
| 
 | |
|     .line 6
 | |
|     :goto_0
 | |
|     array-length v2, p0
 | |
| 
 | |
|     array-length v3, p1
 | |
| 
 | |
|     sub-int/2addr v2, v3
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     if-ge v0, v2, :cond_3
 | |
| 
 | |
|     move v2, v1
 | |
| 
 | |
|     .line 7
 | |
|     :goto_1
 | |
|     array-length v3, p1
 | |
| 
 | |
|     if-ge v2, v3, :cond_2
 | |
| 
 | |
|     add-int v3, v0, v2
 | |
| 
 | |
|     .line 8
 | |
|     aget-wide v3, p0, v3
 | |
| 
 | |
|     aget-wide v5, p1, v2
 | |
| 
 | |
|     cmpl-double v3, v3, v5
 | |
| 
 | |
|     if-eqz v3, :cond_1
 | |
| 
 | |
|     add-int/lit8 v0, v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     return v0
 | |
| 
 | |
|     :cond_3
 | |
|     const/4 p0, -0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static isFinite(D)Z
 | |
|     .locals 2
 | |
| 
 | |
|     const-wide/high16 v0, -0x10000000000000L    # Double.NEGATIVE_INFINITY
 | |
| 
 | |
|     cmpg-double v0, v0, p0
 | |
| 
 | |
|     if-gez v0, :cond_0
 | |
| 
 | |
|     const-wide/high16 v0, 0x7ff0000000000000L    # Double.POSITIVE_INFINITY
 | |
| 
 | |
|     cmpg-double p0, p0, v0
 | |
| 
 | |
|     if-gez p0, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static varargs join(Ljava/lang/String;[D)Ljava/lang/String;
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     array-length v0, p1
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     const-string p0, ""
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     array-length v1, p1
 | |
| 
 | |
|     mul-int/lit8 v1, v1, 0xc
 | |
| 
 | |
|     invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     aget-wide v1, p1, v1
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     .line 5
 | |
|     :goto_0
 | |
|     array-length v2, p1
 | |
| 
 | |
|     if-ge v1, v2, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     aget-wide v2, p1, v1
 | |
| 
 | |
|     invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     add-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static lastIndexOf([DD)I
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-static {p0, p1, p2, v1, v0}, Lcom/google/common/primitives/Doubles;->lastIndexOf([DDII)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method private static lastIndexOf([DDII)I
 | |
|     .locals 2
 | |
| 
 | |
|     add-int/lit8 p4, p4, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-lt p4, p3, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     aget-wide v0, p0, p4
 | |
| 
 | |
|     cmpl-double v0, v0, p1
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return p4
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 p4, p4, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, -0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static lexicographicalComparator()Ljava/util/Comparator;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Ljava/util/Comparator<",
 | |
|             "[D>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/primitives/Doubles$LexicographicalComparator;->INSTANCE:Lcom/google/common/primitives/Doubles$LexicographicalComparator;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static varargs max([D)D
 | |
|     .locals 5
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|         value = "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class."
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     if-lez v0, :cond_0
 | |
| 
 | |
|     move v0, v2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     move v0, v1
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
 | |
| 
 | |
|     .line 2
 | |
|     aget-wide v0, p0, v1
 | |
| 
 | |
|     .line 3
 | |
|     :goto_1
 | |
|     array-length v3, p0
 | |
| 
 | |
|     if-ge v2, v3, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     aget-wide v3, p0, v2
 | |
| 
 | |
|     invoke-static {v0, v1, v3, v4}, Ljava/lang/Math;->max(DD)D
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     return-wide v0
 | |
| .end method
 | |
| 
 | |
| .method public static varargs min([D)D
 | |
|     .locals 5
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|         value = "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class."
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     if-lez v0, :cond_0
 | |
| 
 | |
|     move v0, v2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     move v0, v1
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
 | |
| 
 | |
|     .line 2
 | |
|     aget-wide v0, p0, v1
 | |
| 
 | |
|     .line 3
 | |
|     :goto_1
 | |
|     array-length v3, p0
 | |
| 
 | |
|     if-ge v2, v3, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     aget-wide v3, p0, v2
 | |
| 
 | |
|     invoke-static {v0, v1, v3, v4}, Ljava/lang/Math;->min(DD)D
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     return-wide v0
 | |
| .end method
 | |
| 
 | |
| .method public static reverse([D)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-static {p0, v1, v0}, Lcom/google/common/primitives/Doubles;->reverse([DII)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static reverse([DII)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 4
 | |
|     array-length v0, p0
 | |
| 
 | |
|     invoke-static {p1, p2, v0}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
 | |
| 
 | |
|     add-int/lit8 p2, p2, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge p1, p2, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     aget-wide v0, p0, p1
 | |
| 
 | |
|     .line 6
 | |
|     aget-wide v2, p0, p2
 | |
| 
 | |
|     aput-wide v2, p0, p1
 | |
| 
 | |
|     .line 7
 | |
|     aput-wide v0, p0, p2
 | |
| 
 | |
|     add-int/lit8 p1, p1, 0x1
 | |
| 
 | |
|     add-int/lit8 p2, p2, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static sortDescending([D)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     array-length v0, p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-static {p0, v1, v0}, Lcom/google/common/primitives/Doubles;->sortDescending([DII)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static sortDescending([DII)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 4
 | |
|     array-length v0, p0
 | |
| 
 | |
|     invoke-static {p1, p2, v0}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p0, p1, p2}, Ljava/util/Arrays;->sort([DII)V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {p0, p1, p2}, Lcom/google/common/primitives/Doubles;->reverse([DII)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static stringConverter()Lcom/google/common/base/Converter;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/Beta;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Lcom/google/common/base/Converter<",
 | |
|             "Ljava/lang/String;",
 | |
|             "Ljava/lang/Double;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/primitives/Doubles$DoubleConverter;->INSTANCE:Lcom/google/common/primitives/Doubles$DoubleConverter;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static toArray(Ljava/util/Collection;)[D
 | |
|     .locals 5
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/util/Collection<",
 | |
|             "+",
 | |
|             "Ljava/lang/Number;",
 | |
|             ">;)[D"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     instance-of v0, p0, Lcom/google/common/primitives/Doubles$DoubleArrayAsList;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     check-cast p0, Lcom/google/common/primitives/Doubles$DoubleArrayAsList;
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/common/primitives/Doubles$DoubleArrayAsList;->toDoubleArray()[D
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     .line 4
 | |
|     array-length v0, p0
 | |
| 
 | |
|     .line 5
 | |
|     new-array v1, v0, [D
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v0, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     aget-object v3, p0, v2
 | |
| 
 | |
|     invoke-static {v3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     check-cast v3, Ljava/lang/Number;
 | |
| 
 | |
|     invoke-virtual {v3}, Ljava/lang/Number;->doubleValue()D
 | |
| 
 | |
|     move-result-wide v3
 | |
| 
 | |
|     aput-wide v3, v1, v2
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     return-object v1
 | |
| .end method
 | |
| 
 | |
| .method public static tryParse(Ljava/lang/String;)Ljava/lang/Double;
 | |
|     .locals 2
 | |
|     .annotation build Lcom/google/common/annotations/Beta;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation runtime Ljavax/annotation/CheckForNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/primitives/Doubles;->FLOATING_POINT_PATTERN:Ljava/util/regex/Pattern;
 | |
| 
 | |
|     invoke-virtual {v0, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     invoke-static {p0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
 | |
| 
 | |
|     move-result-object p0
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     :catch_0
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 |