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

246 lines
5.7 KiB

.class final Lcom/google/common/collect/CompoundOrdering;
.super Lcom/google/common/collect/Ordering;
.source "CompoundOrdering.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 comparators:Lcom/google/common/collect/ImmutableList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/ImmutableList",
"<",
"Ljava/util/Comparator",
"<-TT;>;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Ljava/lang/Iterable;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable",
"<+",
"Ljava/util/Comparator",
"<-TT;>;>;)V"
}
.end annotation
.prologue
.line 35
invoke-direct {p0}, Lcom/google/common/collect/Ordering;-><init>()V
.line 36
invoke-static {p1}, Lcom/google/common/collect/ImmutableList;->copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;
move-result-object v0
iput-object v0, p0, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
.line 37
return-void
.end method
.method constructor <init>(Ljava/util/Comparator;Ljava/util/Comparator;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Comparator",
"<-TT;>;",
"Ljava/util/Comparator",
"<-TT;>;)V"
}
.end annotation
.prologue
.line 30
invoke-direct {p0}, Lcom/google/common/collect/Ordering;-><init>()V
.line 31
invoke-static {p1, p2}, Lcom/google/common/collect/ImmutableList;->of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
move-result-object v0
iput-object v0, p0, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
.line 33
return-void
.end method
# virtual methods
.method public compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;TT;)I"
}
.end annotation
.prologue
const/4 v1, 0x0
.line 41
iget-object v0, p0, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->size()I
move-result v3
move v2, v1
.line 42
:goto_0
if-ge v2, v3, :cond_1
.line 43
iget-object v0, p0, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
invoke-virtual {v0, v2}, Lcom/google/common/collect/ImmutableList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Comparator;
invoke-interface {v0, p1, p2}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
move-result v0
.line 44
if-eqz v0, :cond_0
.line 48
:goto_1
return v0
.line 42
:cond_0
add-int/lit8 v0, v2, 0x1
move v2, v0
goto :goto_0
:cond_1
move v0, v1
.line 48
goto :goto_1
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 2
.prologue
.line 52
if-ne p1, p0, :cond_0
.line 53
const/4 v0, 0x1
.line 59
:goto_0
return v0
.line 55
:cond_0
instance-of v0, p1, Lcom/google/common/collect/CompoundOrdering;
if-eqz v0, :cond_1
.line 56
check-cast p1, Lcom/google/common/collect/CompoundOrdering;
.line 57
iget-object v0, p0, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
iget-object v1, p1, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
invoke-virtual {v0, v1}, Lcom/google/common/collect/ImmutableList;->equals(Ljava/lang/Object;)Z
move-result v0
goto :goto_0
.line 59
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
.method public hashCode()I
.locals 1
.prologue
.line 63
iget-object v0, p0, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->hashCode()I
move-result v0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.prologue
.line 67
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Ordering.compound("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/google/common/collect/CompoundOrdering;->comparators:Lcom/google/common/collect/ImmutableList;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
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