今奥全景相机
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.

129 lines
3.0 KiB

.class final Lcom/google/common/collect/NaturalOrdering;
.super Lcom/google/common/collect/Ordering;
.source "NaturalOrdering.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation build Lcom/google/common/annotations/GwtCompatible;
serializable = true
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/Ordering",
"<",
"Ljava/lang/Comparable;",
">;",
"Ljava/io/Serializable;"
}
.end annotation
# static fields
.field static final INSTANCE:Lcom/google/common/collect/NaturalOrdering;
.field private static final serialVersionUID:J
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
.line 30
new-instance v0, Lcom/google/common/collect/NaturalOrdering;
invoke-direct {v0}, Lcom/google/common/collect/NaturalOrdering;-><init>()V
sput-object v0, Lcom/google/common/collect/NaturalOrdering;->INSTANCE:Lcom/google/common/collect/NaturalOrdering;
return-void
.end method
.method private constructor <init>()V
.locals 0
.prologue
.line 51
invoke-direct {p0}, Lcom/google/common/collect/Ordering;-><init>()V
return-void
.end method
.method private readResolve()Ljava/lang/Object;
.locals 1
.prologue
.line 44
sget-object v0, Lcom/google/common/collect/NaturalOrdering;->INSTANCE:Lcom/google/common/collect/NaturalOrdering;
return-object v0
.end method
# virtual methods
.method public compare(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
.locals 1
.prologue
.line 33
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 34
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 35
invoke-interface {p1, p2}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 1
.prologue
.line 26
check-cast p1, Ljava/lang/Comparable;
check-cast p2, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/NaturalOrdering;->compare(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
move-result v0
return v0
.end method
.method public reverse()Lcom/google/common/collect/Ordering;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<S::",
"Ljava/lang/Comparable;",
">()",
"Lcom/google/common/collect/Ordering",
"<TS;>;"
}
.end annotation
.prologue
.line 39
sget-object v0, Lcom/google/common/collect/ReverseNaturalOrdering;->INSTANCE:Lcom/google/common/collect/ReverseNaturalOrdering;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
.prologue
.line 48
const-string v0, "Ordering.natural()"
return-object v0
.end method