.class final Lcom/google/common/collect/ImmutableRangeSet$AsSet; .super Lcom/google/common/collect/ImmutableSortedSet; .source "ImmutableRangeSet.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/collect/ImmutableRangeSet; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x12 name = "AsSet" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableSortedSet<", "TC;>;" } .end annotation # instance fields .field private final domain:Lcom/google/common/collect/DiscreteDomain; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/DiscreteDomain<", "TC;>;" } .end annotation .end field .field private transient size:Ljava/lang/Integer; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end field .field final synthetic this$0:Lcom/google/common/collect/ImmutableRangeSet; # direct methods .method constructor (Lcom/google/common/collect/ImmutableRangeSet;Lcom/google/common/collect/DiscreteDomain;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/DiscreteDomain<", "TC;>;)V" } .end annotation iput-object p1, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; .line 540 invoke-static {}, Lcom/google/common/collect/Ordering;->natural()Lcom/google/common/collect/Ordering; move-result-object p1 invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableSortedSet;->(Ljava/util/Comparator;)V iput-object p2, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->domain:Lcom/google/common/collect/DiscreteDomain; return-void .end method .method static synthetic access$100(Lcom/google/common/collect/ImmutableRangeSet$AsSet;)Lcom/google/common/collect/DiscreteDomain; .locals 0 .line 536 iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->domain:Lcom/google/common/collect/DiscreteDomain; return-object p0 .end method # virtual methods .method public contains(Ljava/lang/Object;)Z .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param const/4 v0, 0x0 if-nez p1, :cond_0 return v0 .line 639 :cond_0 :try_start_0 check-cast p1, Ljava/lang/Comparable; iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; .line 640 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableRangeSet;->contains(Ljava/lang/Comparable;)Z move-result p0 :try_end_0 .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0 return p0 :catch_0 return v0 .end method .method createDescendingSet()Lcom/google/common/collect/ImmutableSortedSet; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableSortedSet<", "TC;>;" } .end annotation .line 666 new-instance v0, Lcom/google/common/collect/DescendingImmutableSortedSet; invoke-direct {v0, p0}, Lcom/google/common/collect/DescendingImmutableSortedSet;->(Lcom/google/common/collect/ImmutableSortedSet;)V return-object v0 .end method .method public descendingIterator()Lcom/google/common/collect/UnmodifiableIterator; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/UnmodifiableIterator<", "TC;>;" } .end annotation .line 587 new-instance v0, Lcom/google/common/collect/ImmutableRangeSet$AsSet$2; invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableRangeSet$AsSet$2;->(Lcom/google/common/collect/ImmutableRangeSet$AsSet;)V return-object v0 .end method .method public bridge synthetic descendingIterator()Ljava/util/Iterator; .locals 0 .line 536 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->descendingIterator()Lcom/google/common/collect/UnmodifiableIterator; move-result-object p0 return-object p0 .end method .method headSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ImmutableSortedSet; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TC;Z)", "Lcom/google/common/collect/ImmutableSortedSet<", "TC;>;" } .end annotation .line 612 invoke-static {p2}, Lcom/google/common/collect/BoundType;->forBoolean(Z)Lcom/google/common/collect/BoundType; move-result-object p2 invoke-static {p1, p2}, Lcom/google/common/collect/Range;->upTo(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range; move-result-object p1 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->subSet(Lcom/google/common/collect/Range;)Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .end method .method bridge synthetic headSetImpl(Ljava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet; .locals 0 .line 536 check-cast p1, Ljava/lang/Comparable; invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->headSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .end method .method indexOf(Ljava/lang/Object;)I .locals 5 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .line 648 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->contains(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_2 .line 650 invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/Comparable; iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; .line 652 invoke-static {v0}, Lcom/google/common/collect/ImmutableRangeSet;->access$000(Lcom/google/common/collect/ImmutableRangeSet;)Lcom/google/common/collect/ImmutableList; move-result-object v0 invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator; move-result-object v0 const-wide/16 v1, 0x0 :goto_0 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_1 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/google/common/collect/Range; .line 653 invoke-virtual {v3, p1}, Lcom/google/common/collect/Range;->contains(Ljava/lang/Comparable;)Z move-result v4 if-eqz v4, :cond_0 iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->domain:Lcom/google/common/collect/DiscreteDomain; .line 654 invoke-static {v3, p0}, Lcom/google/common/collect/ContiguousSet;->create(Lcom/google/common/collect/Range;Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/ContiguousSet; move-result-object p0 invoke-virtual {p0, p1}, Lcom/google/common/collect/ContiguousSet;->indexOf(Ljava/lang/Object;)I move-result p0 int-to-long p0, p0 add-long/2addr v1, p0 invoke-static {v1, v2}, Lcom/google/common/primitives/Ints;->saturatedCast(J)I move-result p0 return p0 :cond_0 iget-object v4, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->domain:Lcom/google/common/collect/DiscreteDomain; .line 656 invoke-static {v3, v4}, Lcom/google/common/collect/ContiguousSet;->create(Lcom/google/common/collect/Range;Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/ContiguousSet; move-result-object v3 invoke-virtual {v3}, Lcom/google/common/collect/ContiguousSet;->size()I move-result v3 int-to-long v3, v3 add-long/2addr v1, v3 goto :goto_0 .line 659 :cond_1 new-instance p0, Ljava/lang/AssertionError; const-string p1, "impossible" invoke-direct {p0, p1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw p0 :cond_2 const/4 p0, -0x1 return p0 .end method .method isPartialView()Z .locals 0 iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; .line 671 invoke-static {p0}, Lcom/google/common/collect/ImmutableRangeSet;->access$000(Lcom/google/common/collect/ImmutableRangeSet;)Lcom/google/common/collect/ImmutableList; move-result-object p0 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableList;->isPartialView()Z move-result p0 return p0 .end method .method public iterator()Lcom/google/common/collect/UnmodifiableIterator; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/UnmodifiableIterator<", "TC;>;" } .end annotation .line 565 new-instance v0, Lcom/google/common/collect/ImmutableRangeSet$AsSet$1; invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableRangeSet$AsSet$1;->(Lcom/google/common/collect/ImmutableRangeSet$AsSet;)V return-object v0 .end method .method public bridge synthetic iterator()Ljava/util/Iterator; .locals 0 .line 536 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->iterator()Lcom/google/common/collect/UnmodifiableIterator; move-result-object p0 return-object p0 .end method .method public size()I .locals 5 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->size:Ljava/lang/Integer; if-nez v0, :cond_2 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; .line 552 invoke-static {v0}, Lcom/google/common/collect/ImmutableRangeSet;->access$000(Lcom/google/common/collect/ImmutableRangeSet;)Lcom/google/common/collect/ImmutableList; move-result-object v0 invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator; move-result-object v0 const-wide/16 v1, 0x0 :cond_0 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_1 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/google/common/collect/Range; iget-object v4, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->domain:Lcom/google/common/collect/DiscreteDomain; .line 553 invoke-static {v3, v4}, Lcom/google/common/collect/ContiguousSet;->create(Lcom/google/common/collect/Range;Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/ContiguousSet; move-result-object v3 invoke-virtual {v3}, Lcom/google/common/collect/ContiguousSet;->size()I move-result v3 int-to-long v3, v3 add-long/2addr v1, v3 const-wide/32 v3, 0x7fffffff cmp-long v3, v1, v3 if-ltz v3, :cond_0 .line 558 :cond_1 invoke-static {v1, v2}, Lcom/google/common/primitives/Ints;->saturatedCast(J)I move-result v0 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 iput-object v0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->size:Ljava/lang/Integer; .line 560 :cond_2 invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I move-result p0 return p0 .end method .method subSet(Lcom/google/common/collect/Range;)Lcom/google/common/collect/ImmutableSortedSet; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/Range<", "TC;>;)", "Lcom/google/common/collect/ImmutableSortedSet<", "TC;>;" } .end annotation iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; .line 607 invoke-virtual {v0, p1}, Lcom/google/common/collect/ImmutableRangeSet;->subRangeSet(Lcom/google/common/collect/Range;)Lcom/google/common/collect/ImmutableRangeSet; move-result-object p1 iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->domain:Lcom/google/common/collect/DiscreteDomain; invoke-virtual {p1, p0}, Lcom/google/common/collect/ImmutableRangeSet;->asSet(Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .end method .method subSetImpl(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ImmutableSortedSet; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TC;ZTC;Z)", "Lcom/google/common/collect/ImmutableSortedSet<", "TC;>;" } .end annotation if-nez p2, :cond_0 if-nez p4, :cond_0 .line 618 invoke-static {p1, p3}, Lcom/google/common/collect/Range;->compareOrThrow(Ljava/lang/Comparable;Ljava/lang/Comparable;)I move-result v0 if-nez v0, :cond_0 .line 619 invoke-static {}, Lcom/google/common/collect/ImmutableSortedSet;->of()Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .line 623 :cond_0 invoke-static {p2}, Lcom/google/common/collect/BoundType;->forBoolean(Z)Lcom/google/common/collect/BoundType; move-result-object p2 .line 624 invoke-static {p4}, Lcom/google/common/collect/BoundType;->forBoolean(Z)Lcom/google/common/collect/BoundType; move-result-object p4 .line 622 invoke-static {p1, p2, p3, p4}, Lcom/google/common/collect/Range;->range(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range; move-result-object p1 .line 621 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->subSet(Lcom/google/common/collect/Range;)Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .end method .method bridge synthetic subSetImpl(Ljava/lang/Object;ZLjava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet; .locals 0 .line 536 check-cast p1, Ljava/lang/Comparable; check-cast p3, Ljava/lang/Comparable; invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->subSetImpl(Ljava/lang/Comparable;ZLjava/lang/Comparable;Z)Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .end method .method tailSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ImmutableSortedSet; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TC;Z)", "Lcom/google/common/collect/ImmutableSortedSet<", "TC;>;" } .end annotation .line 629 invoke-static {p2}, Lcom/google/common/collect/BoundType;->forBoolean(Z)Lcom/google/common/collect/BoundType; move-result-object p2 invoke-static {p1, p2}, Lcom/google/common/collect/Range;->downTo(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range; move-result-object p1 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->subSet(Lcom/google/common/collect/Range;)Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .end method .method bridge synthetic tailSetImpl(Ljava/lang/Object;Z)Lcom/google/common/collect/ImmutableSortedSet; .locals 0 .line 536 check-cast p1, Ljava/lang/Comparable; invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->tailSetImpl(Ljava/lang/Comparable;Z)Lcom/google/common/collect/ImmutableSortedSet; move-result-object p0 return-object p0 .end method .method public toString()Ljava/lang/String; .locals 0 iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; .line 676 invoke-static {p0}, Lcom/google/common/collect/ImmutableRangeSet;->access$000(Lcom/google/common/collect/ImmutableRangeSet;)Lcom/google/common/collect/ImmutableList; move-result-object p0 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableList;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method writeReplace()Ljava/lang/Object; .locals 2 .line 681 new-instance v0, Lcom/google/common/collect/ImmutableRangeSet$AsSetSerializedForm; iget-object v1, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->this$0:Lcom/google/common/collect/ImmutableRangeSet; invoke-static {v1}, Lcom/google/common/collect/ImmutableRangeSet;->access$000(Lcom/google/common/collect/ImmutableRangeSet;)Lcom/google/common/collect/ImmutableList; move-result-object v1 iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeSet$AsSet;->domain:Lcom/google/common/collect/DiscreteDomain; invoke-direct {v0, v1, p0}, Lcom/google/common/collect/ImmutableRangeSet$AsSetSerializedForm;->(Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/DiscreteDomain;)V return-object v0 .end method