.class final Lcom/google/common/collect/SingletonImmutableBiMap; .super Lcom/google/common/collect/ImmutableBiMap; .source "SingletonImmutableBiMap.java" # annotations .annotation build Lcom/google/common/annotations/GwtCompatible; emulated = true serializable = true .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lcom/google/common/collect/ImmutableBiMap", ";" } .end annotation # instance fields .field transient inverse:Lcom/google/common/collect/ImmutableBiMap; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableBiMap", ";" } .end annotation .end field .field final transient singleKey:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TK;" } .end annotation .end field .field final transient singleValue:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TV;" } .end annotation .end field # direct methods .method constructor (Ljava/lang/Object;Ljava/lang/Object;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TK;TV;)V" } .end annotation .prologue .line 38 invoke-direct {p0}, Lcom/google/common/collect/ImmutableBiMap;->()V .line 39 invoke-static {p1, p2}, Lcom/google/common/collect/CollectPreconditions;->checkEntryNotNull(Ljava/lang/Object;Ljava/lang/Object;)V .line 40 iput-object p1, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleKey:Ljava/lang/Object; .line 41 iput-object p2, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleValue:Ljava/lang/Object; .line 42 return-void .end method .method private constructor (Ljava/lang/Object;Ljava/lang/Object;Lcom/google/common/collect/ImmutableBiMap;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TK;TV;", "Lcom/google/common/collect/ImmutableBiMap", ";)V" } .end annotation .prologue .line 45 invoke-direct {p0}, Lcom/google/common/collect/ImmutableBiMap;->()V .line 46 iput-object p1, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleKey:Ljava/lang/Object; .line 47 iput-object p2, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleValue:Ljava/lang/Object; .line 48 iput-object p3, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->inverse:Lcom/google/common/collect/ImmutableBiMap; .line 49 return-void .end method .method constructor (Ljava/util/Map$Entry;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map$Entry", "<+TK;+TV;>;)V" } .end annotation .prologue .line 52 invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v0 invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v1 invoke-direct {p0, v0, v1}, Lcom/google/common/collect/SingletonImmutableBiMap;->(Ljava/lang/Object;Ljava/lang/Object;)V .line 53 return-void .end method # virtual methods .method public containsKey(Ljava/lang/Object;)Z .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .prologue .line 65 iget-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleKey:Ljava/lang/Object; invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 return v0 .end method .method public containsValue(Ljava/lang/Object;)Z .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .prologue .line 69 iget-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleValue:Ljava/lang/Object; invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 return v0 .end method .method createEntrySet()Lcom/google/common/collect/ImmutableSet; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableSet", "<", "Ljava/util/Map$Entry", ";>;" } .end annotation .prologue .line 78 iget-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleKey:Ljava/lang/Object; iget-object v1, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleValue:Ljava/lang/Object; invoke-static {v0, v1}, Lcom/google/common/collect/Maps;->immutableEntry(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map$Entry; move-result-object v0 invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; move-result-object v0 return-object v0 .end method .method createKeySet()Lcom/google/common/collect/ImmutableSet; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableSet", ";" } .end annotation .prologue .line 83 iget-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleKey:Ljava/lang/Object; invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; move-result-object v0 return-object v0 .end method .method public get(Ljava/lang/Object;)Ljava/lang/Object; .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", ")TV;" } .end annotation .prologue .line 56 iget-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleKey:Ljava/lang/Object; invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleValue:Ljava/lang/Object; :goto_0 return-object v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public bridge synthetic inverse()Lcom/google/common/collect/BiMap; .locals 1 .prologue .line 31 invoke-virtual {p0}, Lcom/google/common/collect/SingletonImmutableBiMap;->inverse()Lcom/google/common/collect/ImmutableBiMap; move-result-object v0 return-object v0 .end method .method public inverse()Lcom/google/common/collect/ImmutableBiMap; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableBiMap", ";" } .end annotation .prologue .line 91 iget-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->inverse:Lcom/google/common/collect/ImmutableBiMap; .line 92 if-nez v0, :cond_0 .line 93 new-instance v0, Lcom/google/common/collect/SingletonImmutableBiMap; iget-object v1, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleValue:Ljava/lang/Object; iget-object v2, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->singleKey:Ljava/lang/Object; invoke-direct {v0, v1, v2, p0}, Lcom/google/common/collect/SingletonImmutableBiMap;->(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/common/collect/ImmutableBiMap;)V iput-object v0, p0, Lcom/google/common/collect/SingletonImmutableBiMap;->inverse:Lcom/google/common/collect/ImmutableBiMap; .line 96 :cond_0 return-object v0 .end method .method isPartialView()Z .locals 1 .prologue .line 73 const/4 v0, 0x0 return v0 .end method .method public size()I .locals 1 .prologue .line 61 const/4 v0, 0x1 return v0 .end method