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

1699 lines
44 KiB

.class public final Lcom/google/common/collect/Range;
.super Ljava/lang/Object;
.source "Range.java"
# interfaces
.implements Lcom/google/common/base/Predicate;
.implements Ljava/io/Serializable;
# annotations
.annotation build Lcom/google/common/annotations/GwtCompatible;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/collect/Range$4;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable;",
">",
"Ljava/lang/Object;",
"Lcom/google/common/base/Predicate",
"<TC;>;",
"Ljava/io/Serializable;"
}
.end annotation
# static fields
.field private static final ALL:Lcom/google/common/collect/Range;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/Range",
"<",
"Ljava/lang/Comparable;",
">;"
}
.end annotation
.end field
.field private static final LOWER_BOUND_FN:Lcom/google/common/base/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/base/Function",
"<",
"Lcom/google/common/collect/Range;",
"Lcom/google/common/collect/Cut;",
">;"
}
.end annotation
.end field
.field static final RANGE_LEX_ORDERING:Lcom/google/common/collect/Ordering;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/Ordering",
"<",
"Lcom/google/common/collect/Range",
"<*>;>;"
}
.end annotation
.end field
.field private static final UPPER_BOUND_FN:Lcom/google/common/base/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/base/Function",
"<",
"Lcom/google/common/collect/Range;",
"Lcom/google/common/collect/Cut;",
">;"
}
.end annotation
.end field
.field private static final serialVersionUID:J
# instance fields
.field final lowerBound:Lcom/google/common/collect/Cut;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/Cut",
"<TC;>;"
}
.end annotation
.end field
.field final upperBound:Lcom/google/common/collect/Cut;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/Cut",
"<TC;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 3
.prologue
.line 117
new-instance v0, Lcom/google/common/collect/Range$1;
invoke-direct {v0}, Lcom/google/common/collect/Range$1;-><init>()V
sput-object v0, Lcom/google/common/collect/Range;->LOWER_BOUND_FN:Lcom/google/common/base/Function;
.line 129
new-instance v0, Lcom/google/common/collect/Range$2;
invoke-direct {v0}, Lcom/google/common/collect/Range$2;-><init>()V
sput-object v0, Lcom/google/common/collect/Range;->UPPER_BOUND_FN:Lcom/google/common/base/Function;
.line 141
new-instance v0, Lcom/google/common/collect/Range$3;
invoke-direct {v0}, Lcom/google/common/collect/Range$3;-><init>()V
sput-object v0, Lcom/google/common/collect/Range;->RANGE_LEX_ORDERING:Lcom/google/common/collect/Ordering;
.line 305
new-instance v0, Lcom/google/common/collect/Range;
invoke-static {}, Lcom/google/common/collect/Cut;->belowAll()Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {}, Lcom/google/common/collect/Cut;->aboveAll()Lcom/google/common/collect/Cut;
move-result-object v2
invoke-direct {v0, v1, v2}, Lcom/google/common/collect/Range;-><init>(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)V
sput-object v0, Lcom/google/common/collect/Range;->ALL:Lcom/google/common/collect/Range;
return-void
.end method
.method private constructor <init>(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/Cut",
"<TC;>;",
"Lcom/google/common/collect/Cut",
"<TC;>;)V"
}
.end annotation
.prologue
.line 360
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 361
invoke-virtual {p1, p2}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v0
if-gtz v0, :cond_0
invoke-static {}, Lcom/google/common/collect/Cut;->aboveAll()Lcom/google/common/collect/Cut;
move-result-object v0
if-eq p1, v0, :cond_0
invoke-static {}, Lcom/google/common/collect/Cut;->belowAll()Lcom/google/common/collect/Cut;
move-result-object v0
if-ne p2, v0, :cond_1
.line 363
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Invalid range: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-static {p1, p2}, Lcom/google/common/collect/Range;->toString(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 365
:cond_1
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/collect/Cut;
iput-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
.line 366
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/collect/Cut;
iput-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
.line 367
return-void
.end method
.method public static all()Lcom/google/common/collect/Range;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>()",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 315
sget-object v0, Lcom/google/common/collect/Range;->ALL:Lcom/google/common/collect/Range;
return-object v0
.end method
.method public static atLeast(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 284
invoke-static {p0}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {}, Lcom/google/common/collect/Cut;->aboveAll()Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method public static atMost(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 246
invoke-static {}, Lcom/google/common/collect/Cut;->belowAll()Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {p0}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method private static cast(Ljava/lang/Iterable;)Ljava/util/SortedSet;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Iterable",
"<TT;>;)",
"Ljava/util/SortedSet",
"<TT;>;"
}
.end annotation
.prologue
.line 670
check-cast p0, Ljava/util/SortedSet;
return-object p0
.end method
.method public static closed(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 177
invoke-static {p0}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {p1}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method public static closedOpen(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 190
invoke-static {p0}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {p1}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method static compareOrThrow(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
.locals 1
.prologue
.line 683
invoke-interface {p0, p1}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method static create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(",
"Lcom/google/common/collect/Cut",
"<TC;>;",
"Lcom/google/common/collect/Cut",
"<TC;>;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 153
new-instance v0, Lcom/google/common/collect/Range;
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Range;-><init>(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)V
return-object v0
.end method
.method public static downTo(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;",
"Lcom/google/common/collect/BoundType;",
")",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 295
sget-object v0, Lcom/google/common/collect/Range$4;->$SwitchMap$com$google$common$collect$BoundType:[I
invoke-virtual {p1}, Lcom/google/common/collect/BoundType;->ordinal()I
move-result v1
aget v0, v0, v1
packed-switch v0, :pswitch_data_0
.line 301
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 297
:pswitch_0
invoke-static {p0}, Lcom/google/common/collect/Range;->greaterThan(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v0
.line 299
:goto_0
return-object v0
:pswitch_1
invoke-static {p0}, Lcom/google/common/collect/Range;->atLeast(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v0
goto :goto_0
.line 295
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
.end packed-switch
.end method
.method public static encloseAll(Ljava/lang/Iterable;)Lcom/google/common/collect/Range;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(",
"Ljava/lang/Iterable",
"<TC;>;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 342
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 343
instance-of v0, p0, Lcom/google/common/collect/ContiguousSet;
if-eqz v0, :cond_0
.line 344
check-cast p0, Lcom/google/common/collect/ContiguousSet;
invoke-virtual {p0}, Lcom/google/common/collect/ContiguousSet;->range()Lcom/google/common/collect/Range;
move-result-object v0
.line 354
:goto_0
return-object v0
.line 346
:cond_0
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v3
.line 347
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
move-object v2, v0
move-object v1, v0
.line 349
:goto_1
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
.line 350
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
.line 351
invoke-static {}, Lcom/google/common/collect/Ordering;->natural()Lcom/google/common/collect/Ordering;
move-result-object v4
invoke-virtual {v4, v1, v0}, Lcom/google/common/collect/Ordering;->min(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Comparable;
.line 352
invoke-static {}, Lcom/google/common/collect/Ordering;->natural()Lcom/google/common/collect/Ordering;
move-result-object v4
invoke-virtual {v4, v2, v0}, Lcom/google/common/collect/Ordering;->max(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
move-object v2, v0
.line 353
goto :goto_1
.line 354
:cond_1
invoke-static {v1, v2}, Lcom/google/common/collect/Range;->closed(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v0
goto :goto_0
.end method
.method public static greaterThan(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 274
invoke-static {p0}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {}, Lcom/google/common/collect/Cut;->aboveAll()Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method public static lessThan(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 236
invoke-static {}, Lcom/google/common/collect/Cut;->belowAll()Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {p0}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method static lowerBoundFn()Lcom/google/common/base/Function;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>()",
"Lcom/google/common/base/Function",
"<",
"Lcom/google/common/collect/Range",
"<TC;>;",
"Lcom/google/common/collect/Cut",
"<TC;>;>;"
}
.end annotation
.prologue
.line 126
sget-object v0, Lcom/google/common/collect/Range;->LOWER_BOUND_FN:Lcom/google/common/base/Function;
return-object v0
.end method
.method public static open(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 165
invoke-static {p0}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {p1}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method public static openClosed(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 203
invoke-static {p0}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
invoke-static {p1}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method public static range(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;",
"Lcom/google/common/collect/BoundType;",
"TC;",
"Lcom/google/common/collect/BoundType;",
")",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 217
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 218
invoke-static {p3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 220
sget-object v0, Lcom/google/common/collect/BoundType;->OPEN:Lcom/google/common/collect/BoundType;
if-ne p1, v0, :cond_0
invoke-static {p0}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
.line 223
:goto_0
sget-object v1, Lcom/google/common/collect/BoundType;->OPEN:Lcom/google/common/collect/BoundType;
if-ne p3, v1, :cond_1
invoke-static {p2}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
.line 226
:goto_1
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.line 220
:cond_0
invoke-static {p0}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v0
goto :goto_0
.line 223
:cond_1
invoke-static {p2}, Lcom/google/common/collect/Cut;->aboveValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
move-result-object v1
goto :goto_1
.end method
.method public static singleton(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 326
invoke-static {p0, p0}, Lcom/google/common/collect/Range;->closed(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v0
return-object v0
.end method
.method private static toString(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Ljava/lang/String;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/Cut",
"<*>;",
"Lcom/google/common/collect/Cut",
"<*>;)",
"Ljava/lang/String;"
}
.end annotation
.prologue
.line 659
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x10
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
.line 660
invoke-virtual {p0, v0}, Lcom/google/common/collect/Cut;->describeAsLowerBound(Ljava/lang/StringBuilder;)V
.line 661
const/16 v1, 0x2025
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 662
invoke-virtual {p1, v0}, Lcom/google/common/collect/Cut;->describeAsUpperBound(Ljava/lang/StringBuilder;)V
.line 663
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static upTo(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>(TC;",
"Lcom/google/common/collect/BoundType;",
")",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 257
sget-object v0, Lcom/google/common/collect/Range$4;->$SwitchMap$com$google$common$collect$BoundType:[I
invoke-virtual {p1}, Lcom/google/common/collect/BoundType;->ordinal()I
move-result v1
aget v0, v0, v1
packed-switch v0, :pswitch_data_0
.line 263
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 259
:pswitch_0
invoke-static {p0}, Lcom/google/common/collect/Range;->lessThan(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v0
.line 261
:goto_0
return-object v0
:pswitch_1
invoke-static {p0}, Lcom/google/common/collect/Range;->atMost(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v0
goto :goto_0
.line 257
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
.end packed-switch
.end method
.method static upperBoundFn()Lcom/google/common/base/Function;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable",
"<*>;>()",
"Lcom/google/common/base/Function",
"<",
"Lcom/google/common/collect/Range",
"<TC;>;",
"Lcom/google/common/collect/Cut",
"<TC;>;>;"
}
.end annotation
.prologue
.line 138
sget-object v0, Lcom/google/common/collect/Range;->UPPER_BOUND_FN:Lcom/google/common/base/Function;
return-object v0
.end method
# virtual methods
.method public apply(Ljava/lang/Comparable;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;)Z"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.prologue
.line 456
invoke-virtual {p0, p1}, Lcom/google/common/collect/Range;->contains(Ljava/lang/Comparable;)Z
move-result v0
return v0
.end method
.method public bridge synthetic apply(Ljava/lang/Object;)Z
.locals 1
.prologue
.line 113
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lcom/google/common/collect/Range;->apply(Ljava/lang/Comparable;)Z
move-result v0
return v0
.end method
.method public canonical(Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/Range;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/DiscreteDomain",
"<TC;>;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 623
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 624
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, p1}, Lcom/google/common/collect/Cut;->canonical(Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/Cut;
move-result-object v0
.line 625
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v1, p1}, Lcom/google/common/collect/Cut;->canonical(Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/Cut;
move-result-object v1
.line 626
iget-object v2, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
if-ne v0, v2, :cond_0
iget-object v2, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
if-ne v1, v2, :cond_0
:goto_0
return-object p0
:cond_0
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object p0
goto :goto_0
.end method
.method public contains(Ljava/lang/Comparable;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;)Z"
}
.end annotation
.prologue
.line 444
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 446
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, p1}, Lcom/google/common/collect/Cut;->isLessThan(Ljava/lang/Comparable;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, p1}, Lcom/google/common/collect/Cut;->isLessThan(Ljava/lang/Comparable;)Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public containsAll(Ljava/lang/Iterable;)Z
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable",
"<+TC;>;)Z"
}
.end annotation
.prologue
const/4 v2, 0x0
const/4 v1, 0x1
.line 464
invoke-static {p1}, Lcom/google/common/collect/Iterables;->isEmpty(Ljava/lang/Iterable;)Z
move-result v0
if-eqz v0, :cond_1
.line 482
:cond_0
:goto_0
return v1
.line 469
:cond_1
instance-of v0, p1, Ljava/util/SortedSet;
if-eqz v0, :cond_4
.line 470
invoke-static {p1}, Lcom/google/common/collect/Range;->cast(Ljava/lang/Iterable;)Ljava/util/SortedSet;
move-result-object v3
.line 471
invoke-interface {v3}, Ljava/util/SortedSet;->comparator()Ljava/util/Comparator;
move-result-object v0
.line 472
invoke-static {}, Lcom/google/common/collect/Ordering;->natural()Lcom/google/common/collect/Ordering;
move-result-object v4
invoke-virtual {v4, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_2
if-nez v0, :cond_4
.line 473
:cond_2
invoke-interface {v3}, Ljava/util/SortedSet;->first()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
invoke-virtual {p0, v0}, Lcom/google/common/collect/Range;->contains(Ljava/lang/Comparable;)Z
move-result v0
if-eqz v0, :cond_3
invoke-interface {v3}, Ljava/util/SortedSet;->last()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
invoke-virtual {p0, v0}, Lcom/google/common/collect/Range;->contains(Ljava/lang/Comparable;)Z
move-result v0
if-eqz v0, :cond_3
move v0, v1
:goto_1
move v1, v0
goto :goto_0
:cond_3
move v0, v2
goto :goto_1
.line 477
:cond_4
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_5
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
.line 478
invoke-virtual {p0, v0}, Lcom/google/common/collect/Range;->contains(Ljava/lang/Comparable;)Z
move-result v0
if-nez v0, :cond_5
move v1, v2
.line 479
goto :goto_0
.end method
.method public encloses(Lcom/google/common/collect/Range;)Z
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/Range",
"<TC;>;)Z"
}
.end annotation
.prologue
.line 510
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v1, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, v1}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v0
if-gtz v0, :cond_0
iget-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
iget-object v1, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, v1}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v0
if-ltz v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 3
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.prologue
const/4 v0, 0x0
.line 637
instance-of v1, p1, Lcom/google/common/collect/Range;
if-eqz v1, :cond_0
.line 638
check-cast p1, Lcom/google/common/collect/Range;
.line 639
iget-object v1, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v2, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v1, v2}, Lcom/google/common/collect/Cut;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
iget-object v2, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v1, v2}, Lcom/google/common/collect/Cut;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
const/4 v0, 0x1
.line 642
:cond_0
return v0
.end method
.method public hasLowerBound()Z
.locals 2
.prologue
.line 373
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-static {}, Lcom/google/common/collect/Cut;->belowAll()Lcom/google/common/collect/Cut;
move-result-object v1
if-eq v0, v1, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public hasUpperBound()Z
.locals 2
.prologue
.line 401
iget-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-static {}, Lcom/google/common/collect/Cut;->aboveAll()Lcom/google/common/collect/Cut;
move-result-object v1
if-eq v0, v1, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public hashCode()I
.locals 2
.prologue
.line 647
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
return v0
.end method
.method public intersection(Lcom/google/common/collect/Range;)Lcom/google/common/collect/Range;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/Range",
"<TC;>;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 560
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v1, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, v1}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v0
.line 561
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
iget-object v2, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v1, v2}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v2
.line 562
if-ltz v0, :cond_0
if-gtz v2, :cond_0
.line 569
:goto_0
return-object p0
.line 564
:cond_0
if-gtz v0, :cond_1
if-ltz v2, :cond_1
move-object p0, p1
.line 565
goto :goto_0
.line 567
:cond_1
if-ltz v0, :cond_2
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
move-object v1, v0
.line 568
:goto_1
if-gtz v2, :cond_3
iget-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
.line 569
:goto_2
invoke-static {v1, v0}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object p0
goto :goto_0
.line 567
:cond_2
iget-object v0, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
move-object v1, v0
goto :goto_1
.line 568
:cond_3
iget-object v0, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
goto :goto_2
.end method
.method public isConnected(Lcom/google/common/collect/Range;)Z
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/Range",
"<TC;>;)Z"
}
.end annotation
.prologue
.line 539
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v1, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, v1}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v0
if-gtz v0, :cond_0
iget-object v0, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, v1}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v0
if-gtz v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public isEmpty()Z
.locals 2
.prologue
.line 435
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, v1}, Lcom/google/common/collect/Cut;->equals(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public lowerBoundType()Lcom/google/common/collect/BoundType;
.locals 1
.prologue
.line 394
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0}, Lcom/google/common/collect/Cut;->typeAsLowerBound()Lcom/google/common/collect/BoundType;
move-result-object v0
return-object v0
.end method
.method public lowerEndpoint()Ljava/lang/Comparable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TC;"
}
.end annotation
.prologue
.line 383
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0}, Lcom/google/common/collect/Cut;->endpoint()Ljava/lang/Comparable;
move-result-object v0
return-object v0
.end method
.method readResolve()Ljava/lang/Object;
.locals 1
.prologue
.line 674
sget-object v0, Lcom/google/common/collect/Range;->ALL:Lcom/google/common/collect/Range;
invoke-virtual {p0, v0}, Lcom/google/common/collect/Range;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 675
invoke-static {}, Lcom/google/common/collect/Range;->all()Lcom/google/common/collect/Range;
move-result-object p0
.line 677
:cond_0
return-object p0
.end method
.method public span(Lcom/google/common/collect/Range;)Lcom/google/common/collect/Range;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/Range",
"<TC;>;)",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.prologue
.line 585
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v1, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0, v1}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v0
.line 586
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
iget-object v2, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v1, v2}, Lcom/google/common/collect/Cut;->compareTo(Lcom/google/common/collect/Cut;)I
move-result v2
.line 587
if-gtz v0, :cond_0
if-ltz v2, :cond_0
.line 594
:goto_0
return-object p0
.line 589
:cond_0
if-ltz v0, :cond_1
if-gtz v2, :cond_1
move-object p0, p1
.line 590
goto :goto_0
.line 592
:cond_1
if-gtz v0, :cond_2
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
move-object v1, v0
.line 593
:goto_1
if-ltz v2, :cond_3
iget-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
.line 594
:goto_2
invoke-static {v1, v0}, Lcom/google/common/collect/Range;->create(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
move-result-object p0
goto :goto_0
.line 592
:cond_2
iget-object v0, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
move-object v1, v0
goto :goto_1
.line 593
:cond_3
iget-object v0, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
goto :goto_2
.end method
.method public toString()Ljava/lang/String;
.locals 2
.prologue
.line 655
iget-object v0, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
iget-object v1, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-static {v0, v1}, Lcom/google/common/collect/Range;->toString(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public upperBoundType()Lcom/google/common/collect/BoundType;
.locals 1
.prologue
.line 422
iget-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0}, Lcom/google/common/collect/Cut;->typeAsUpperBound()Lcom/google/common/collect/BoundType;
move-result-object v0
return-object v0
.end method
.method public upperEndpoint()Ljava/lang/Comparable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TC;"
}
.end annotation
.prologue
.line 411
iget-object v0, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v0}, Lcom/google/common/collect/Cut;->endpoint()Ljava/lang/Comparable;
move-result-object v0
return-object v0
.end method