.class public final Lcom/google/common/collect/ImmutableBiMap$Builder; .super Lcom/google/common/collect/ImmutableMap$Builder; .source "ImmutableBiMap.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/collect/ImmutableBiMap; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Builder" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lcom/google/common/collect/ImmutableMap$Builder<", "TK;TV;>;" } .end annotation # direct methods .method public constructor ()V .locals 0 .line 337 invoke-direct {p0}, Lcom/google/common/collect/ImmutableMap$Builder;->()V return-void .end method .method constructor (I)V .locals 0 .line 341 invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableMap$Builder;->(I)V return-void .end method # virtual methods .method public build()Lcom/google/common/collect/ImmutableBiMap; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableBiMap<", "TK;TV;>;" } .end annotation .line 434 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableBiMap$Builder;->buildOrThrow()Lcom/google/common/collect/ImmutableBiMap; move-result-object p0 return-object p0 .end method .method public bridge synthetic build()Lcom/google/common/collect/ImmutableMap; .locals 0 .line 331 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableBiMap$Builder;->build()Lcom/google/common/collect/ImmutableBiMap; move-result-object p0 return-object p0 .end method .method public buildKeepingLast()Lcom/google/common/collect/ImmutableBiMap; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableBiMap<", "TK;TV;>;" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 473 new-instance p0, Ljava/lang/UnsupportedOperationException; const-string v0, "Not supported for bimaps" invoke-direct {p0, v0}, Ljava/lang/UnsupportedOperationException;->(Ljava/lang/String;)V throw p0 .end method .method public bridge synthetic buildKeepingLast()Lcom/google/common/collect/ImmutableMap; .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 331 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableBiMap$Builder;->buildKeepingLast()Lcom/google/common/collect/ImmutableBiMap; move-result-object p0 return-object p0 .end method .method public buildOrThrow()Lcom/google/common/collect/ImmutableBiMap; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableBiMap<", "TK;TV;>;" } .end annotation .line 448 iget v0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->size:I if-nez v0, :cond_0 .line 449 invoke-static {}, Lcom/google/common/collect/ImmutableBiMap;->of()Lcom/google/common/collect/ImmutableBiMap; move-result-object p0 return-object p0 .line 451 :cond_0 iget-object v0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->valueComparator:Ljava/util/Comparator; if-eqz v0, :cond_2 .line 452 iget-boolean v0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->entriesUsed:Z if-eqz v0, :cond_1 .line 453 iget-object v0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->alternatingKeysAndValues:[Ljava/lang/Object; iget v1, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->size:I mul-int/lit8 v1, v1, 0x2 invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v0 iput-object v0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->alternatingKeysAndValues:[Ljava/lang/Object; .line 455 :cond_1 iget-object v0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->alternatingKeysAndValues:[Ljava/lang/Object; iget v1, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->size:I iget-object v2, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->valueComparator:Ljava/util/Comparator; invoke-static {v0, v1, v2}, Lcom/google/common/collect/ImmutableBiMap$Builder;->sortEntries([Ljava/lang/Object;ILjava/util/Comparator;)V :cond_2 const/4 v0, 0x1 .line 457 iput-boolean v0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->entriesUsed:Z .line 458 new-instance v0, Lcom/google/common/collect/RegularImmutableBiMap; iget-object v1, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->alternatingKeysAndValues:[Ljava/lang/Object; iget p0, p0, Lcom/google/common/collect/ImmutableBiMap$Builder;->size:I invoke-direct {v0, v1, p0}, Lcom/google/common/collect/RegularImmutableBiMap;->([Ljava/lang/Object;I)V return-object v0 .end method .method public bridge synthetic buildOrThrow()Lcom/google/common/collect/ImmutableMap; .locals 0 .line 331 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableBiMap$Builder;->buildOrThrow()Lcom/google/common/collect/ImmutableBiMap; move-result-object p0 return-object p0 .end method .method combine(Lcom/google/common/collect/ImmutableMap$Builder;)Lcom/google/common/collect/ImmutableBiMap$Builder; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/ImmutableMap$Builder<", "TK;TV;>;)", "Lcom/google/common/collect/ImmutableBiMap$Builder<", "TK;TV;>;" } .end annotation .line 417 invoke-super {p0, p1}, Lcom/google/common/collect/ImmutableMap$Builder;->combine(Lcom/google/common/collect/ImmutableMap$Builder;)Lcom/google/common/collect/ImmutableMap$Builder; return-object p0 .end method .method bridge synthetic combine(Lcom/google/common/collect/ImmutableMap$Builder;)Lcom/google/common/collect/ImmutableMap$Builder; .locals 0 .line 331 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableBiMap$Builder;->combine(Lcom/google/common/collect/ImmutableMap$Builder;)Lcom/google/common/collect/ImmutableBiMap$Builder; move-result-object p0 return-object p0 .end method .method public orderEntriesByValue(Ljava/util/Comparator;)Lcom/google/common/collect/ImmutableBiMap$Builder; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Comparator<", "-TV;>;)", "Lcom/google/common/collect/ImmutableBiMap$Builder<", "TK;TV;>;" } .end annotation .line 410 invoke-super {p0, p1}, Lcom/google/common/collect/ImmutableMap$Builder;->orderEntriesByValue(Ljava/util/Comparator;)Lcom/google/common/collect/ImmutableMap$Builder; return-object p0 .end method .method public bridge synthetic orderEntriesByValue(Ljava/util/Comparator;)Lcom/google/common/collect/ImmutableMap$Builder; .locals 0 .line 331 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableBiMap$Builder;->orderEntriesByValue(Ljava/util/Comparator;)Lcom/google/common/collect/ImmutableBiMap$Builder; move-result-object p0 return-object p0 .end method .method public put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableBiMap$Builder; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TK;TV;)", "Lcom/google/common/collect/ImmutableBiMap$Builder<", "TK;TV;>;" } .end annotation .line 351 invoke-super {p0, p1, p2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder; return-object p0 .end method .method public put(Ljava/util/Map$Entry;)Lcom/google/common/collect/ImmutableBiMap$Builder; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map$Entry<", "+TK;+TV;>;)", "Lcom/google/common/collect/ImmutableBiMap$Builder<", "TK;TV;>;" } .end annotation .line 364 invoke-super {p0, p1}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/util/Map$Entry;)Lcom/google/common/collect/ImmutableMap$Builder; return-object p0 .end method .method public bridge synthetic put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder; .locals 0 .line 331 invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ImmutableBiMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableBiMap$Builder; move-result-object p0 return-object p0 .end method .method public bridge synthetic put(Ljava/util/Map$Entry;)Lcom/google/common/collect/ImmutableMap$Builder; .locals 0 .line 331 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableBiMap$Builder;->put(Ljava/util/Map$Entry;)Lcom/google/common/collect/ImmutableBiMap$Builder; move-result-object p0 return-object p0 .end method .method public putAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableBiMap$Builder; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "+", "Ljava/util/Map$Entry<", "+TK;+TV;>;>;)", "Lcom/google/common/collect/ImmutableBiMap$Builder<", "TK;TV;>;" } .end annotation .line 392 invoke-super {p0, p1}, Lcom/google/common/collect/ImmutableMap$Builder;->putAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap$Builder; return-object p0 .end method .method public putAll(Ljava/util/Map;)Lcom/google/common/collect/ImmutableBiMap$Builder; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map<", "+TK;+TV;>;)", "Lcom/google/common/collect/ImmutableBiMap$Builder<", "TK;TV;>;" } .end annotation .line 377 invoke-super {p0, p1}, Lcom/google/common/collect/ImmutableMap$Builder;->putAll(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap$Builder; return-object p0 .end method .method public bridge synthetic putAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap$Builder; .locals 0 .line 331 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableBiMap$Builder;->putAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableBiMap$Builder; move-result-object p0 return-object p0 .end method .method public bridge synthetic putAll(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap$Builder; .locals 0 .line 331 invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableBiMap$Builder;->putAll(Ljava/util/Map;)Lcom/google/common/collect/ImmutableBiMap$Builder; move-result-object p0 return-object p0 .end method