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

697 lines
19 KiB

.class public abstract Lcom/google/common/collect/ContiguousSet;
.super Lcom/google/common/collect/ImmutableSortedSet;
.source "ContiguousSet.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation build Lcom/google/common/annotations/GwtCompatible;
emulated = true
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable;",
">",
"Lcom/google/common/collect/ImmutableSortedSet",
"<TC;>;"
}
.end annotation
# instance fields
.field final domain:Lcom/google/common/collect/DiscreteDomain;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/DiscreteDomain",
"<TC;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lcom/google/common/collect/DiscreteDomain;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/DiscreteDomain",
"<TC;>;)V"
}
.end annotation
.prologue
.line 82
invoke-static {}, Lcom/google/common/collect/Ordering;->natural()Lcom/google/common/collect/Ordering;
move-result-object v0
invoke-direct {p0, v0}, Lcom/google/common/collect/ImmutableSortedSet;-><init>(Ljava/util/Comparator;)V
.line 83
iput-object p1, p0, Lcom/google/common/collect/ContiguousSet;->domain:Lcom/google/common/collect/DiscreteDomain;
.line 84
return-void
.end method
.method public static builder()Lcom/google/common/collect/ImmutableSortedSet$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">()",
"Lcom/google/common/collect/ImmutableSortedSet$Builder",
"<TE;>;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.prologue
.line 182
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
.method public static create(Lcom/google/common/collect/Range;Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/ContiguousSet;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable;",
">(",
"Lcom/google/common/collect/Range",
"<TC;>;",
"Lcom/google/common/collect/DiscreteDomain",
"<TC;>;)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.prologue
.line 54
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 55
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 58
:try_start_0
invoke-virtual {p0}, Lcom/google/common/collect/Range;->hasLowerBound()Z
move-result v0
if-nez v0, :cond_4
.line 59
invoke-virtual {p1}, Lcom/google/common/collect/DiscreteDomain;->minValue()Ljava/lang/Comparable;
move-result-object v0
invoke-static {v0}, Lcom/google/common/collect/Range;->atLeast(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/google/common/collect/Range;->intersection(Lcom/google/common/collect/Range;)Lcom/google/common/collect/Range;
move-result-object v0
.line 61
:goto_0
invoke-virtual {p0}, Lcom/google/common/collect/Range;->hasUpperBound()Z
move-result v1
if-nez v1, :cond_0
.line 62
invoke-virtual {p1}, Lcom/google/common/collect/DiscreteDomain;->maxValue()Ljava/lang/Comparable;
move-result-object v1
invoke-static {v1}, Lcom/google/common/collect/Range;->atMost(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/common/collect/Range;->intersection(Lcom/google/common/collect/Range;)Lcom/google/common/collect/Range;
:try_end_0
.catch Ljava/util/NoSuchElementException; {:try_start_0 .. :try_end_0} :catch_0
move-result-object v0
.line 69
:cond_0
invoke-virtual {v0}, Lcom/google/common/collect/Range;->isEmpty()Z
move-result v1
if-nez v1, :cond_1
iget-object v1, p0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut;
invoke-virtual {v1, p1}, Lcom/google/common/collect/Cut;->leastValueAbove(Lcom/google/common/collect/DiscreteDomain;)Ljava/lang/Comparable;
move-result-object v1
iget-object v2, p0, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut;
invoke-virtual {v2, p1}, Lcom/google/common/collect/Cut;->greatestValueBelow(Lcom/google/common/collect/DiscreteDomain;)Ljava/lang/Comparable;
move-result-object v2
invoke-static {v1, v2}, Lcom/google/common/collect/Range;->compareOrThrow(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
move-result v1
if-lez v1, :cond_2
:cond_1
const/4 v1, 0x1
.line 74
:goto_1
if-eqz v1, :cond_3
new-instance v0, Lcom/google/common/collect/EmptyContiguousSet;
invoke-direct {v0, p1}, Lcom/google/common/collect/EmptyContiguousSet;-><init>(Lcom/google/common/collect/DiscreteDomain;)V
:goto_2
return-object v0
.line 64
:catch_0
move-exception v0
.line 65
new-instance v1, Ljava/lang/IllegalArgumentException;
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
throw v1
.line 69
:cond_2
const/4 v1, 0x0
goto :goto_1
.line 74
:cond_3
new-instance v1, Lcom/google/common/collect/RegularContiguousSet;
invoke-direct {v1, v0, p1}, Lcom/google/common/collect/RegularContiguousSet;-><init>(Lcom/google/common/collect/Range;Lcom/google/common/collect/DiscreteDomain;)V
move-object v0, v1
goto :goto_2
:cond_4
move-object v0, p0
goto :goto_0
.end method
# virtual methods
.method public headSet(Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.prologue
.line 87
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Lcom/google/common/collect/ContiguousSet;->headSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public headSet(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
.locals 1
.annotation build Lcom/google/common/annotations/GwtIncompatible;
value = "NavigableSet"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;Z)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.prologue
.line 95
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
invoke-virtual {p0, v0, p2}, Lcom/google/common/collect/ContiguousSet;->headSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic headSet(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lcom/google/common/collect/ContiguousSet;->headSet(Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic headSet(Ljava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ContiguousSet;->headSet(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic headSet(Ljava/lang/Object;)Ljava/util/SortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lcom/google/common/collect/ContiguousSet;->headSet(Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method abstract headSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;Z)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.end method
.method bridge synthetic headSetImpl(Ljava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ContiguousSet;->headSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public abstract intersection(Lcom/google/common/collect/ContiguousSet;)Lcom/google/common/collect/ContiguousSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.end method
.method public abstract range()Lcom/google/common/collect/Range;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.end method
.method public abstract range(Lcom/google/common/collect/BoundType;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/BoundType;",
"Lcom/google/common/collect/BoundType;",
")",
"Lcom/google/common/collect/Range",
"<TC;>;"
}
.end annotation
.end method
.method public subSet(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;TC;)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.prologue
const/4 v1, 0x1
const/4 v2, 0x0
.line 99
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 100
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 101
invoke-virtual {p0}, Lcom/google/common/collect/ContiguousSet;->comparator()Ljava/util/Comparator;
move-result-object v0
invoke-interface {v0, p1, p2}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
move-result v0
if-gtz v0, :cond_0
move v0, v1
:goto_0
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
.line 102
invoke-virtual {p0, p1, v1, p2, v2}, Lcom/google/common/collect/ContiguousSet;->subSetImpl(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
:cond_0
move v0, v2
.line 101
goto :goto_0
.end method
.method public subSet(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
.locals 1
.annotation build Lcom/google/common/annotations/GwtIncompatible;
value = "NavigableSet"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;ZTC;Z)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.prologue
.line 111
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 112
invoke-static {p3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 113
invoke-virtual {p0}, Lcom/google/common/collect/ContiguousSet;->comparator()Ljava/util/Comparator;
move-result-object v0
invoke-interface {v0, p1, p3}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
move-result v0
if-gtz v0, :cond_0
const/4 v0, 0x1
:goto_0
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
.line 114
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/common/collect/ContiguousSet;->subSetImpl(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.line 113
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public bridge synthetic subSet(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
check-cast p2, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ContiguousSet;->subSet(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic subSet(Ljava/lang/Object;ZLjava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
check-cast p3, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/common/collect/ContiguousSet;->subSet(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic subSet(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
check-cast p2, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ContiguousSet;->subSet(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method abstract subSetImpl(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;ZTC;Z)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.end method
.method bridge synthetic subSetImpl(Ljava/lang/Object;ZLjava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
check-cast p3, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/common/collect/ContiguousSet;->subSetImpl(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public tailSet(Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.prologue
.line 118
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
const/4 v1, 0x1
invoke-virtual {p0, v0, v1}, Lcom/google/common/collect/ContiguousSet;->tailSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public tailSet(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
.locals 1
.annotation build Lcom/google/common/annotations/GwtIncompatible;
value = "NavigableSet"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;Z)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.prologue
.line 126
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Comparable;
invoke-virtual {p0, v0, p2}, Lcom/google/common/collect/ContiguousSet;->tailSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic tailSet(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lcom/google/common/collect/ContiguousSet;->tailSet(Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic tailSet(Ljava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ContiguousSet;->tailSet(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic tailSet(Ljava/lang/Object;)Ljava/util/SortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lcom/google/common/collect/ContiguousSet;->tailSet(Ljava/lang/Comparable;)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method abstract tailSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;Z)",
"Lcom/google/common/collect/ContiguousSet",
"<TC;>;"
}
.end annotation
.end method
.method bridge synthetic tailSetImpl(Ljava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet;
.locals 1
.prologue
.line 39
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ContiguousSet;->tailSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ContiguousSet;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
.prologue
.line 170
invoke-virtual {p0}, Lcom/google/common/collect/ContiguousSet;->range()Lcom/google/common/collect/Range;
move-result-object v0
invoke-virtual {v0}, Lcom/google/common/collect/Range;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method