You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
231 lines
5.4 KiB
231 lines
5.4 KiB
.class public final Lcom/google/common/base/Objects; |
|
.super Ljava/lang/Object; |
|
.source "Objects.java" |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/google/common/base/Objects$1;, |
|
Lcom/google/common/base/Objects$ToStringHelper; |
|
} |
|
.end annotation |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 40 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public static equal(Ljava/lang/Object;Ljava/lang/Object;)Z |
|
.locals 1 |
|
.param p0 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation runtime Ljavax/annotation/CheckReturnValue; |
|
.end annotation |
|
|
|
.prologue |
|
.line 57 |
|
if-eq p0, p1, :cond_0 |
|
|
|
if-eqz p0, :cond_1 |
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
:cond_0 |
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_1 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 0 |
|
.param p0 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(TT;TT;)TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 190 |
|
if-eqz p0, :cond_0 |
|
|
|
:goto_0 |
|
return-object p0 |
|
|
|
:cond_0 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object p0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static varargs hashCode([Ljava/lang/Object;)I |
|
.locals 1 |
|
.param p0 # [Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 78 |
|
invoke-static {p0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method private static simpleName(Ljava/lang/Class;)Ljava/lang/String; |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Class", |
|
"<*>;)", |
|
"Ljava/lang/String;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 155 |
|
invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 159 |
|
const-string v1, "\\$[0-9]+" |
|
|
|
const-string v2, "\\$" |
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
.line 162 |
|
const/16 v0, 0x24 |
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->lastIndexOf(I)I |
|
|
|
move-result v0 |
|
|
|
.line 166 |
|
const/4 v2, -0x1 |
|
|
|
if-ne v0, v2, :cond_0 |
|
|
|
.line 167 |
|
const/16 v0, 0x2e |
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->lastIndexOf(I)I |
|
|
|
move-result v0 |
|
|
|
.line 169 |
|
:cond_0 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static toStringHelper(Ljava/lang/Class;)Lcom/google/common/base/Objects$ToStringHelper; |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Class", |
|
"<*>;)", |
|
"Lcom/google/common/base/Objects$ToStringHelper;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 135 |
|
new-instance v0, Lcom/google/common/base/Objects$ToStringHelper; |
|
|
|
invoke-static {p0}, Lcom/google/common/base/Objects;->simpleName(Ljava/lang/Class;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-direct {v0, v1, v2}, Lcom/google/common/base/Objects$ToStringHelper;-><init>(Ljava/lang/String;Lcom/google/common/base/Objects$1;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 121 |
|
new-instance v0, Lcom/google/common/base/Objects$ToStringHelper; |
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v1}, Lcom/google/common/base/Objects;->simpleName(Ljava/lang/Class;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-direct {v0, v1, v2}, Lcom/google/common/base/Objects$ToStringHelper;-><init>(Ljava/lang/String;Lcom/google/common/base/Objects$1;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static toStringHelper(Ljava/lang/String;)Lcom/google/common/base/Objects$ToStringHelper; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 147 |
|
new-instance v0, Lcom/google/common/base/Objects$ToStringHelper; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/common/base/Objects$ToStringHelper;-><init>(Ljava/lang/String;Lcom/google/common/base/Objects$1;)V |
|
|
|
return-object v0 |
|
.end method
|
|
|