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.
271 lines
6.2 KiB
271 lines
6.2 KiB
.class final Lcom/google/common/collect/NullsLastOrdering; |
|
.super Lcom/google/common/collect/Ordering; |
|
.source "NullsLastOrdering.java" |
|
|
|
# interfaces |
|
.implements Ljava/io/Serializable; |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
serializable = true |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Lcom/google/common/collect/Ordering", |
|
"<TT;>;", |
|
"Ljava/io/Serializable;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final serialVersionUID:J |
|
|
|
|
|
# instance fields |
|
.field final ordering:Lcom/google/common/collect/Ordering; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Lcom/google/common/collect/Ordering", |
|
"<-TT;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/google/common/collect/Ordering;)V |
|
.locals 0 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/collect/Ordering", |
|
"<-TT;>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 30 |
|
invoke-direct {p0}, Lcom/google/common/collect/Ordering;-><init>()V |
|
|
|
.line 31 |
|
iput-object p1, p0, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
.line 32 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public compare(Ljava/lang/Object;Ljava/lang/Object;)I |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.param p2 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TT;TT;)I" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 35 |
|
if-ne p1, p2, :cond_0 |
|
|
|
.line 36 |
|
const/4 v0, 0x0 |
|
|
|
.line 44 |
|
:goto_0 |
|
return v0 |
|
|
|
.line 38 |
|
:cond_0 |
|
if-nez p1, :cond_1 |
|
|
|
.line 39 |
|
const/4 v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 41 |
|
:cond_1 |
|
if-nez p2, :cond_2 |
|
|
|
.line 42 |
|
const/4 v0, -0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 44 |
|
:cond_2 |
|
iget-object v0, p0, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/google/common/collect/Ordering;->compare(Ljava/lang/Object;Ljava/lang/Object;)I |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public equals(Ljava/lang/Object;)Z |
|
.locals 2 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 62 |
|
if-ne p1, p0, :cond_0 |
|
|
|
.line 63 |
|
const/4 v0, 0x1 |
|
|
|
.line 69 |
|
:goto_0 |
|
return v0 |
|
|
|
.line 65 |
|
:cond_0 |
|
instance-of v0, p1, Lcom/google/common/collect/NullsLastOrdering; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 66 |
|
check-cast p1, Lcom/google/common/collect/NullsLastOrdering; |
|
|
|
.line 67 |
|
iget-object v0, p0, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
iget-object v1, p1, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 69 |
|
:cond_1 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public hashCode()I |
|
.locals 2 |
|
|
|
.prologue |
|
.line 73 |
|
iget-object v0, p0, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I |
|
|
|
move-result v0 |
|
|
|
const v1, -0x36e88db8 # -620324.5f |
|
|
|
xor-int/2addr v0, v1 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public nullsFirst()Lcom/google/common/collect/Ordering; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<S:TT;>()", |
|
"Lcom/google/common/collect/Ordering", |
|
"<TS;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 53 |
|
iget-object v0, p0, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/Ordering;->nullsFirst()Lcom/google/common/collect/Ordering; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public nullsLast()Lcom/google/common/collect/Ordering; |
|
.locals 0 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<S:TT;>()", |
|
"Lcom/google/common/collect/Ordering", |
|
"<TS;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 58 |
|
return-object p0 |
|
.end method |
|
|
|
.method public reverse()Lcom/google/common/collect/Ordering; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<S:TT;>()", |
|
"Lcom/google/common/collect/Ordering", |
|
"<TS;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 49 |
|
iget-object v0, p0, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/Ordering;->reverse()Lcom/google/common/collect/Ordering; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/Ordering;->nullsFirst()Lcom/google/common/collect/Ordering; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public toString()Ljava/lang/String; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 77 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
iget-object v1, p0, Lcom/google/common/collect/NullsLastOrdering;->ordering:Lcom/google/common/collect/Ordering; |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, ".nullsLast()" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method
|
|
|