192 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			192 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class final enum Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| .super Ljava/lang/Enum;
 | |
| .source "Shorts.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Ljava/util/Comparator;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lcom/google/common/primitives/Shorts;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x4019
 | |
|     name = "LexicographicalComparator"
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "Ljava/lang/Enum<",
 | |
|         "Lcom/google/common/primitives/Shorts$LexicographicalComparator;",
 | |
|         ">;",
 | |
|         "Ljava/util/Comparator<",
 | |
|         "[S>;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final synthetic $VALUES:[Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
| .field public static final enum INSTANCE:Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private static synthetic $values()[Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
|     .locals 3
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     new-array v0, v0, [Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v1, Lcom/google/common/primitives/Shorts$LexicographicalComparator;->INSTANCE:Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     aput-object v1, v0, v2
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     const-string v1, "INSTANCE"
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v0, v1, v2}, Lcom/google/common/primitives/Shorts$LexicographicalComparator;-><init>(Ljava/lang/String;I)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/primitives/Shorts$LexicographicalComparator;->INSTANCE:Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Lcom/google/common/primitives/Shorts$LexicographicalComparator;->$values()[Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/primitives/Shorts$LexicographicalComparator;->$VALUES:[Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private constructor <init>(Ljava/lang/String;I)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static valueOf(Ljava/lang/String;)Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     const-class v0, Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     check-cast p0, Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static values()[Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/primitives/Shorts$LexicographicalComparator;->$VALUES:[Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     invoke-virtual {v0}, [Lcom/google/common/primitives/Shorts$LexicographicalComparator;->clone()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, [Lcom/google/common/primitives/Shorts$LexicographicalComparator;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     check-cast p1, [S
 | |
| 
 | |
|     check-cast p2, [S
 | |
| 
 | |
|     invoke-virtual {p0, p1, p2}, Lcom/google/common/primitives/Shorts$LexicographicalComparator;->compare([S[S)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public compare([S[S)I
 | |
|     .locals 4
 | |
| 
 | |
|     .line 2
 | |
|     array-length v0, p1
 | |
| 
 | |
|     array-length v1, p2
 | |
| 
 | |
|     invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v1, v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     aget-short v2, p1, v1
 | |
| 
 | |
|     aget-short v3, p2, v1
 | |
| 
 | |
|     invoke-static {v2, v3}, Lcom/google/common/primitives/Shorts;->compare(SS)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     return v2
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_1
 | |
|     array-length p1, p1
 | |
| 
 | |
|     array-length p2, p2
 | |
| 
 | |
|     sub-int/2addr p1, p2
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public toString()Ljava/lang/String;
 | |
|     .locals 1
 | |
| 
 | |
|     const-string v0, "Shorts.lexicographicalComparator()"
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 |