.class public Lcom/google/common/collect/ImmutableRangeMap; .super Ljava/lang/Object; .source "ImmutableRangeMap.java" # interfaces .implements Lcom/google/common/collect/RangeMap; .implements Ljava/io/Serializable; # annotations .annotation build Lcom/google/common/annotations/Beta; .end annotation .annotation build Lcom/google/common/annotations/GwtIncompatible; .end annotation .annotation runtime Lcom/google/common/collect/ElementTypesAreNonnullByDefault; .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/collect/ImmutableRangeMap$SerializedForm;, Lcom/google/common/collect/ImmutableRangeMap$Builder; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { ";V:", "Ljava/lang/Object;", ">", "Ljava/lang/Object;", "Lcom/google/common/collect/RangeMap<", "TK;TV;>;", "Ljava/io/Serializable;" } .end annotation # static fields .field private static final EMPTY:Lcom/google/common/collect/ImmutableRangeMap; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableRangeMap<", "Ljava/lang/Comparable<", "*>;", "Ljava/lang/Object;", ">;" } .end annotation .end field .field private static final serialVersionUID:J # instance fields .field private final transient ranges:Lcom/google/common/collect/ImmutableList; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableList<", "Lcom/google/common/collect/Range<", "TK;>;>;" } .end annotation .end field .field private final transient values:Lcom/google/common/collect/ImmutableList; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableList<", "TV;>;" } .end annotation .end field # direct methods .method public static constructor ()V .locals 3 .line 1 new-instance v0, Lcom/google/common/collect/ImmutableRangeMap; .line 2 invoke-static {}, Lcom/google/common/collect/ImmutableList;->of()Lcom/google/common/collect/ImmutableList; move-result-object v1 invoke-static {}, Lcom/google/common/collect/ImmutableList;->of()Lcom/google/common/collect/ImmutableList; move-result-object v2 invoke-direct {v0, v1, v2}, Lcom/google/common/collect/ImmutableRangeMap;->(Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/ImmutableList;)V sput-object v0, Lcom/google/common/collect/ImmutableRangeMap;->EMPTY:Lcom/google/common/collect/ImmutableRangeMap; return-void .end method .method public constructor (Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/ImmutableList;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/ImmutableList<", "Lcom/google/common/collect/Range<", "TK;>;>;", "Lcom/google/common/collect/ImmutableList<", "TV;>;)V" } .end annotation .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 iput-object p1, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; .line 3 iput-object p2, p0, Lcom/google/common/collect/ImmutableRangeMap;->values:Lcom/google/common/collect/ImmutableList; return-void .end method .method public static synthetic access$000(Lcom/google/common/collect/ImmutableRangeMap;)Lcom/google/common/collect/ImmutableList; .locals 0 .line 1 iget-object p0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; return-object p0 .end method .method public static builder()Lcom/google/common/collect/ImmutableRangeMap$Builder; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { ";V:", "Ljava/lang/Object;", ">()", "Lcom/google/common/collect/ImmutableRangeMap$Builder<", "TK;TV;>;" } .end annotation .line 1 new-instance v0, Lcom/google/common/collect/ImmutableRangeMap$Builder; invoke-direct {v0}, Lcom/google/common/collect/ImmutableRangeMap$Builder;->()V return-object v0 .end method .method public static copyOf(Lcom/google/common/collect/RangeMap;)Lcom/google/common/collect/ImmutableRangeMap; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { ";V:", "Ljava/lang/Object;", ">(", "Lcom/google/common/collect/RangeMap<", "TK;+TV;>;)", "Lcom/google/common/collect/ImmutableRangeMap<", "TK;TV;>;" } .end annotation .line 1 instance-of v0, p0, Lcom/google/common/collect/ImmutableRangeMap; if-eqz v0, :cond_0 .line 2 check-cast p0, Lcom/google/common/collect/ImmutableRangeMap; return-object p0 .line 3 :cond_0 invoke-interface {p0}, Lcom/google/common/collect/RangeMap;->asMapOfRanges()Ljava/util/Map; move-result-object p0 .line 4 new-instance v0, Lcom/google/common/collect/ImmutableList$Builder; invoke-interface {p0}, Ljava/util/Map;->size()I move-result v1 invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableList$Builder;->(I)V .line 5 new-instance v1, Lcom/google/common/collect/ImmutableList$Builder; invoke-interface {p0}, Ljava/util/Map;->size()I move-result v2 invoke-direct {v1, v2}, Lcom/google/common/collect/ImmutableList$Builder;->(I)V .line 6 invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p0 invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_1 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/util/Map$Entry; .line 7 invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/google/common/collect/Range; invoke-virtual {v0, v3}, Lcom/google/common/collect/ImmutableList$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; .line 8 invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v2 invoke-virtual {v1, v2}, Lcom/google/common/collect/ImmutableList$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; goto :goto_0 .line 9 :cond_1 new-instance p0, Lcom/google/common/collect/ImmutableRangeMap; invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList$Builder;->build()Lcom/google/common/collect/ImmutableList; move-result-object v0 invoke-virtual {v1}, Lcom/google/common/collect/ImmutableList$Builder;->build()Lcom/google/common/collect/ImmutableList; move-result-object v1 invoke-direct {p0, v0, v1}, Lcom/google/common/collect/ImmutableRangeMap;->(Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/ImmutableList;)V return-object p0 .end method .method public static of()Lcom/google/common/collect/ImmutableRangeMap; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { ";V:", "Ljava/lang/Object;", ">()", "Lcom/google/common/collect/ImmutableRangeMap<", "TK;TV;>;" } .end annotation .line 1 sget-object v0, Lcom/google/common/collect/ImmutableRangeMap;->EMPTY:Lcom/google/common/collect/ImmutableRangeMap; return-object v0 .end method .method public static of(Lcom/google/common/collect/Range;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableRangeMap; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { ";V:", "Ljava/lang/Object;", ">(", "Lcom/google/common/collect/Range<", "TK;>;TV;)", "Lcom/google/common/collect/ImmutableRangeMap<", "TK;TV;>;" } .end annotation .line 2 new-instance v0, Lcom/google/common/collect/ImmutableRangeMap; invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; move-result-object p0 invoke-static {p1}, Lcom/google/common/collect/ImmutableList;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; move-result-object p1 invoke-direct {v0, p0, p1}, Lcom/google/common/collect/ImmutableRangeMap;->(Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/ImmutableList;)V return-object v0 .end method # virtual methods .method public asDescendingMapOfRanges()Lcom/google/common/collect/ImmutableMap; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableMap<", "Lcom/google/common/collect/Range<", "TK;>;TV;>;" } .end annotation .line 2 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Ljava/util/AbstractCollection;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 .line 3 invoke-static {}, Lcom/google/common/collect/ImmutableMap;->of()Lcom/google/common/collect/ImmutableMap; move-result-object v0 return-object v0 .line 4 :cond_0 new-instance v0, Lcom/google/common/collect/RegularImmutableSortedSet; iget-object v1, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; .line 5 invoke-virtual {v1}, Lcom/google/common/collect/ImmutableList;->reverse()Lcom/google/common/collect/ImmutableList; move-result-object v1 invoke-static {}, Lcom/google/common/collect/Range;->rangeLexOrdering()Lcom/google/common/collect/Ordering; move-result-object v2 invoke-virtual {v2}, Lcom/google/common/collect/Ordering;->reverse()Lcom/google/common/collect/Ordering; move-result-object v2 invoke-direct {v0, v1, v2}, Lcom/google/common/collect/RegularImmutableSortedSet;->(Lcom/google/common/collect/ImmutableList;Ljava/util/Comparator;)V .line 6 new-instance v1, Lcom/google/common/collect/ImmutableSortedMap; iget-object v2, p0, Lcom/google/common/collect/ImmutableRangeMap;->values:Lcom/google/common/collect/ImmutableList; invoke-virtual {v2}, Lcom/google/common/collect/ImmutableList;->reverse()Lcom/google/common/collect/ImmutableList; move-result-object v2 invoke-direct {v1, v0, v2}, Lcom/google/common/collect/ImmutableSortedMap;->(Lcom/google/common/collect/RegularImmutableSortedSet;Lcom/google/common/collect/ImmutableList;)V return-object v1 .end method .method public bridge synthetic asDescendingMapOfRanges()Ljava/util/Map; .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeMap;->asDescendingMapOfRanges()Lcom/google/common/collect/ImmutableMap; move-result-object v0 return-object v0 .end method .method public asMapOfRanges()Lcom/google/common/collect/ImmutableMap; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableMap<", "Lcom/google/common/collect/Range<", "TK;>;TV;>;" } .end annotation .line 2 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Ljava/util/AbstractCollection;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 .line 3 invoke-static {}, Lcom/google/common/collect/ImmutableMap;->of()Lcom/google/common/collect/ImmutableMap; move-result-object v0 return-object v0 .line 4 :cond_0 new-instance v0, Lcom/google/common/collect/RegularImmutableSortedSet; iget-object v1, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; .line 5 invoke-static {}, Lcom/google/common/collect/Range;->rangeLexOrdering()Lcom/google/common/collect/Ordering; move-result-object v2 invoke-direct {v0, v1, v2}, Lcom/google/common/collect/RegularImmutableSortedSet;->(Lcom/google/common/collect/ImmutableList;Ljava/util/Comparator;)V .line 6 new-instance v1, Lcom/google/common/collect/ImmutableSortedMap; iget-object v2, p0, Lcom/google/common/collect/ImmutableRangeMap;->values:Lcom/google/common/collect/ImmutableList; invoke-direct {v1, v0, v2}, Lcom/google/common/collect/ImmutableSortedMap;->(Lcom/google/common/collect/RegularImmutableSortedSet;Lcom/google/common/collect/ImmutableList;)V return-object v1 .end method .method public bridge synthetic asMapOfRanges()Ljava/util/Map; .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeMap;->asMapOfRanges()Lcom/google/common/collect/ImmutableMap; move-result-object v0 return-object v0 .end method .method public final clear()V .locals 1 .annotation build Lcom/google/errorprone/annotations/DoNotCall; value = "Always throws UnsupportedOperationException" .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 new-instance v0, Ljava/lang/UnsupportedOperationException; invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;->()V throw v0 .end method .method public equals(Ljava/lang/Object;)Z .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .line 1 instance-of v0, p1, Lcom/google/common/collect/RangeMap; if-eqz v0, :cond_0 .line 2 check-cast p1, Lcom/google/common/collect/RangeMap; .line 3 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeMap;->asMapOfRanges()Lcom/google/common/collect/ImmutableMap; move-result-object v0 invoke-interface {p1}, Lcom/google/common/collect/RangeMap;->asMapOfRanges()Ljava/util/Map; move-result-object p1 invoke-virtual {v0, p1}, Lcom/google/common/collect/ImmutableMap;->equals(Ljava/lang/Object;)Z move-result p1 return p1 :cond_0 const/4 p1, 0x0 return p1 .end method .method public get(Ljava/lang/Comparable;)Ljava/lang/Object; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(TK;)TV;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; .line 2 invoke-static {}, Lcom/google/common/collect/Range;->lowerBoundFn()Lcom/google/common/base/Function; move-result-object v1 .line 3 invoke-static {p1}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut; move-result-object v2 sget-object v3, Lcom/google/common/collect/SortedLists$KeyPresentBehavior;->ANY_PRESENT:Lcom/google/common/collect/SortedLists$KeyPresentBehavior; sget-object v4, Lcom/google/common/collect/SortedLists$KeyAbsentBehavior;->NEXT_LOWER:Lcom/google/common/collect/SortedLists$KeyAbsentBehavior; .line 4 invoke-static {v0, v1, v2, v3, v4}, Lcom/google/common/collect/SortedLists;->binarySearch(Ljava/util/List;Lcom/google/common/base/Function;Ljava/lang/Comparable;Lcom/google/common/collect/SortedLists$KeyPresentBehavior;Lcom/google/common/collect/SortedLists$KeyAbsentBehavior;)I move-result v0 const/4 v1, 0x0 const/4 v2, -0x1 if-ne v0, v2, :cond_0 return-object v1 .line 5 :cond_0 iget-object v2, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/google/common/collect/Range; .line 6 invoke-virtual {v2, p1}, Lcom/google/common/collect/Range;->contains(Ljava/lang/Comparable;)Z move-result p1 if-eqz p1, :cond_1 iget-object p1, p0, Lcom/google/common/collect/ImmutableRangeMap;->values:Lcom/google/common/collect/ImmutableList; invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v1 :cond_1 return-object v1 .end method .method public getEntry(Ljava/lang/Comparable;)Ljava/util/Map$Entry; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(TK;)", "Ljava/util/Map$Entry<", "Lcom/google/common/collect/Range<", "TK;>;TV;>;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; .line 2 invoke-static {}, Lcom/google/common/collect/Range;->lowerBoundFn()Lcom/google/common/base/Function; move-result-object v1 .line 3 invoke-static {p1}, Lcom/google/common/collect/Cut;->belowValue(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut; move-result-object v2 sget-object v3, Lcom/google/common/collect/SortedLists$KeyPresentBehavior;->ANY_PRESENT:Lcom/google/common/collect/SortedLists$KeyPresentBehavior; sget-object v4, Lcom/google/common/collect/SortedLists$KeyAbsentBehavior;->NEXT_LOWER:Lcom/google/common/collect/SortedLists$KeyAbsentBehavior; .line 4 invoke-static {v0, v1, v2, v3, v4}, Lcom/google/common/collect/SortedLists;->binarySearch(Ljava/util/List;Lcom/google/common/base/Function;Ljava/lang/Comparable;Lcom/google/common/collect/SortedLists$KeyPresentBehavior;Lcom/google/common/collect/SortedLists$KeyAbsentBehavior;)I move-result v0 const/4 v1, 0x0 const/4 v2, -0x1 if-ne v0, v2, :cond_0 return-object v1 .line 5 :cond_0 iget-object v2, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/google/common/collect/Range; .line 6 invoke-virtual {v2, p1}, Lcom/google/common/collect/Range;->contains(Ljava/lang/Comparable;)Z move-result p1 if-eqz p1, :cond_1 iget-object p1, p0, Lcom/google/common/collect/ImmutableRangeMap;->values:Lcom/google/common/collect/ImmutableList; invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object p1 invoke-static {v2, p1}, Lcom/google/common/collect/Maps;->immutableEntry(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map$Entry; move-result-object v1 :cond_1 return-object v1 .end method .method public hashCode()I .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeMap;->asMapOfRanges()Lcom/google/common/collect/ImmutableMap; move-result-object v0 invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMap;->hashCode()I move-result v0 return v0 .end method .method public final put(Lcom/google/common/collect/Range;Ljava/lang/Object;)V .locals 0 .annotation build Lcom/google/errorprone/annotations/DoNotCall; value = "Always throws UnsupportedOperationException" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/Range<", "TK;>;TV;)V" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 new-instance p1, Ljava/lang/UnsupportedOperationException; invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;->()V throw p1 .end method .method public final putAll(Lcom/google/common/collect/RangeMap;)V .locals 0 .annotation build Lcom/google/errorprone/annotations/DoNotCall; value = "Always throws UnsupportedOperationException" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/RangeMap<", "TK;TV;>;)V" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 new-instance p1, Ljava/lang/UnsupportedOperationException; invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;->()V throw p1 .end method .method public final putCoalescing(Lcom/google/common/collect/Range;Ljava/lang/Object;)V .locals 0 .annotation build Lcom/google/errorprone/annotations/DoNotCall; value = "Always throws UnsupportedOperationException" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/Range<", "TK;>;TV;)V" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 new-instance p1, Ljava/lang/UnsupportedOperationException; invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;->()V throw p1 .end method .method public final remove(Lcom/google/common/collect/Range;)V .locals 0 .annotation build Lcom/google/errorprone/annotations/DoNotCall; value = "Always throws UnsupportedOperationException" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/Range<", "TK;>;)V" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 new-instance p1, Ljava/lang/UnsupportedOperationException; invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;->()V throw p1 .end method .method public span()Lcom/google/common/collect/Range; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/Range<", "TK;>;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Ljava/util/AbstractCollection;->isEmpty()Z move-result v0 if-nez v0, :cond_0 .line 2 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; const/4 v1, 0x0 invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/google/common/collect/Range; .line 3 iget-object v1, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; invoke-virtual {v1}, Ljava/util/AbstractCollection;->size()I move-result v2 add-int/lit8 v2, v2, -0x1 invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/google/common/collect/Range; .line 4 iget-object v0, v0, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut; iget-object v1, v1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut; 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 5 :cond_0 new-instance v0, Ljava/util/NoSuchElementException; invoke-direct {v0}, Ljava/util/NoSuchElementException;->()V throw v0 .end method .method public subRangeMap(Lcom/google/common/collect/Range;)Lcom/google/common/collect/ImmutableRangeMap; .locals 9 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/Range<", "TK;>;)", "Lcom/google/common/collect/ImmutableRangeMap<", "TK;TV;>;" } .end annotation .line 2 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/Range; invoke-virtual {v0}, Lcom/google/common/collect/Range;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 .line 3 invoke-static {}, Lcom/google/common/collect/ImmutableRangeMap;->of()Lcom/google/common/collect/ImmutableRangeMap; move-result-object p1 return-object p1 .line 4 :cond_0 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Ljava/util/AbstractCollection;->isEmpty()Z move-result v0 if-nez v0, :cond_3 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeMap;->span()Lcom/google/common/collect/Range; move-result-object v0 invoke-virtual {p1, v0}, Lcom/google/common/collect/Range;->encloses(Lcom/google/common/collect/Range;)Z move-result v0 if-eqz v0, :cond_1 goto :goto_0 .line 5 :cond_1 iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; .line 6 invoke-static {}, Lcom/google/common/collect/Range;->upperBoundFn()Lcom/google/common/base/Function; move-result-object v1 iget-object v2, p1, Lcom/google/common/collect/Range;->lowerBound:Lcom/google/common/collect/Cut; sget-object v3, Lcom/google/common/collect/SortedLists$KeyPresentBehavior;->FIRST_AFTER:Lcom/google/common/collect/SortedLists$KeyPresentBehavior; sget-object v4, Lcom/google/common/collect/SortedLists$KeyAbsentBehavior;->NEXT_HIGHER:Lcom/google/common/collect/SortedLists$KeyAbsentBehavior; .line 7 invoke-static {v0, v1, v2, v3, v4}, Lcom/google/common/collect/SortedLists;->binarySearch(Ljava/util/List;Lcom/google/common/base/Function;Ljava/lang/Comparable;Lcom/google/common/collect/SortedLists$KeyPresentBehavior;Lcom/google/common/collect/SortedLists$KeyAbsentBehavior;)I move-result v0 .line 8 iget-object v1, p0, Lcom/google/common/collect/ImmutableRangeMap;->ranges:Lcom/google/common/collect/ImmutableList; .line 9 invoke-static {}, Lcom/google/common/collect/Range;->lowerBoundFn()Lcom/google/common/base/Function; move-result-object v2 iget-object v3, p1, Lcom/google/common/collect/Range;->upperBound:Lcom/google/common/collect/Cut; sget-object v5, Lcom/google/common/collect/SortedLists$KeyPresentBehavior;->ANY_PRESENT:Lcom/google/common/collect/SortedLists$KeyPresentBehavior; .line 10 invoke-static {v1, v2, v3, v5, v4}, Lcom/google/common/collect/SortedLists;->binarySearch(Ljava/util/List;Lcom/google/common/base/Function;Ljava/lang/Comparable;Lcom/google/common/collect/SortedLists$KeyPresentBehavior;Lcom/google/common/collect/SortedLists$KeyAbsentBehavior;)I move-result v1 if-lt v0, v1, :cond_2 .line 11 invoke-static {}, Lcom/google/common/collect/ImmutableRangeMap;->of()Lcom/google/common/collect/ImmutableRangeMap; move-result-object p1 return-object p1 :cond_2 sub-int v2, v1, v0 .line 12 new-instance v5, Lcom/google/common/collect/ImmutableRangeMap$1; invoke-direct {v5, p0, v2, v0, p1}, Lcom/google/common/collect/ImmutableRangeMap$1;->(Lcom/google/common/collect/ImmutableRangeMap;IILcom/google/common/collect/Range;)V .line 13 new-instance v2, Lcom/google/common/collect/ImmutableRangeMap$2; iget-object v3, p0, Lcom/google/common/collect/ImmutableRangeMap;->values:Lcom/google/common/collect/ImmutableList; invoke-virtual {v3, v0, v1}, Lcom/google/common/collect/ImmutableList;->subList(II)Lcom/google/common/collect/ImmutableList; move-result-object v6 move-object v3, v2 move-object v4, p0 move-object v7, p1 move-object v8, p0 invoke-direct/range {v3 .. v8}, Lcom/google/common/collect/ImmutableRangeMap$2;->(Lcom/google/common/collect/ImmutableRangeMap;Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/Range;Lcom/google/common/collect/ImmutableRangeMap;)V return-object v2 :cond_3 :goto_0 return-object p0 .end method .method public bridge synthetic subRangeMap(Lcom/google/common/collect/Range;)Lcom/google/common/collect/RangeMap; .locals 0 .line 1 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableRangeMap;->subRangeMap(Lcom/google/common/collect/Range;)Lcom/google/common/collect/ImmutableRangeMap; move-result-object p1 return-object p1 .end method .method public toString()Ljava/lang/String; .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeMap;->asMapOfRanges()Lcom/google/common/collect/ImmutableMap; move-result-object v0 invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMap;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public writeReplace()Ljava/lang/Object; .locals 2 .line 1 new-instance v0, Lcom/google/common/collect/ImmutableRangeMap$SerializedForm; invoke-virtual {p0}, Lcom/google/common/collect/ImmutableRangeMap;->asMapOfRanges()Lcom/google/common/collect/ImmutableMap; move-result-object v1 invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableRangeMap$SerializedForm;->(Lcom/google/common/collect/ImmutableMap;)V return-object v0 .end method