.class final Lcom/google/common/collect/ImmutableEnumMap; .super Lcom/google/common/collect/ImmutableMap; .source "ImmutableEnumMap.java" # annotations .annotation build Lcom/google/common/annotations/GwtCompatible; emulated = true serializable = true .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/collect/ImmutableEnumMap$EnumSerializedForm; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { ";V:", "Ljava/lang/Object;", ">", "Lcom/google/common/collect/ImmutableMap", ";" } .end annotation # instance fields .field private final transient delegate:Ljava/util/EnumMap; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/EnumMap", ";" } .end annotation .end field # direct methods .method private constructor (Ljava/util/EnumMap;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/EnumMap", ";)V" } .end annotation .prologue .line 52 invoke-direct {p0}, Lcom/google/common/collect/ImmutableMap;->()V .line 53 iput-object p1, p0, Lcom/google/common/collect/ImmutableEnumMap;->delegate:Ljava/util/EnumMap; .line 54 invoke-virtual {p1}, Ljava/util/EnumMap;->isEmpty()Z move-result v0 if-nez v0, :cond_0 const/4 v0, 0x1 :goto_0 invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V .line 55 return-void .line 54 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method synthetic constructor (Ljava/util/EnumMap;Lcom/google/common/collect/ImmutableEnumMap$1;)V .locals 0 .prologue .line 36 invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableEnumMap;->(Ljava/util/EnumMap;)V return-void .end method .method static synthetic access$000(Lcom/google/common/collect/ImmutableEnumMap;)Ljava/util/EnumMap; .locals 1 .prologue .line 36 iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumMap;->delegate:Ljava/util/EnumMap; return-object v0 .end method .method static asImmutable(Ljava/util/EnumMap;)Lcom/google/common/collect/ImmutableMap; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { ";V:", "Ljava/lang/Object;", ">(", "Ljava/util/EnumMap", ";)", "Lcom/google/common/collect/ImmutableMap", ";" } .end annotation .prologue .line 38 invoke-virtual {p0}, Ljava/util/EnumMap;->size()I move-result v0 packed-switch v0, :pswitch_data_0 .line 46 new-instance v0, Lcom/google/common/collect/ImmutableEnumMap; invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableEnumMap;->(Ljava/util/EnumMap;)V :goto_0 return-object v0 .line 40 :pswitch_0 invoke-static {}, Lcom/google/common/collect/ImmutableMap;->of()Lcom/google/common/collect/ImmutableMap; move-result-object v0 goto :goto_0 .line 42 :pswitch_1 invoke-virtual {p0}, Ljava/util/EnumMap;->entrySet()Ljava/util/Set; move-result-object v0 invoke-static {v0}, Lcom/google/common/collect/Iterables;->getOnlyElement(Ljava/lang/Iterable;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map$Entry; .line 43 invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v1 invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v0 invoke-static {v1, v0}, Lcom/google/common/collect/ImmutableMap;->of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; move-result-object v0 goto :goto_0 .line 38 nop :pswitch_data_0 .packed-switch 0x0 :pswitch_0 :pswitch_1 .end packed-switch .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 90 iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumMap;->delegate:Ljava/util/EnumMap; invoke-virtual {v0, p1}, Ljava/util/EnumMap;->containsKey(Ljava/lang/Object;)Z move-result v0 return v0 .end method .method createEntrySet()Lcom/google/common/collect/ImmutableSet; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableSet", "<", "Ljava/util/Map$Entry", ";>;" } .end annotation .prologue .line 100 new-instance v0, Lcom/google/common/collect/ImmutableEnumMap$2; invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableEnumMap$2;->(Lcom/google/common/collect/ImmutableEnumMap;)V 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 59 new-instance v0, Lcom/google/common/collect/ImmutableEnumMap$1; invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableEnumMap$1;->(Lcom/google/common/collect/ImmutableEnumMap;)V return-object v0 .end method .method public get(Ljava/lang/Object;)Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", ")TV;" } .end annotation .prologue .line 95 iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumMap;->delegate:Ljava/util/EnumMap; invoke-virtual {v0, p1}, Ljava/util/EnumMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method isPartialView()Z .locals 1 .prologue .line 129 const/4 v0, 0x0 return v0 .end method .method public size()I .locals 1 .prologue .line 85 iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumMap;->delegate:Ljava/util/EnumMap; invoke-virtual {v0}, Ljava/util/EnumMap;->size()I move-result v0 return v0 .end method .method writeReplace()Ljava/lang/Object; .locals 2 .prologue .line 134 new-instance v0, Lcom/google/common/collect/ImmutableEnumMap$EnumSerializedForm; iget-object v1, p0, Lcom/google/common/collect/ImmutableEnumMap;->delegate:Ljava/util/EnumMap; invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableEnumMap$EnumSerializedForm;->(Ljava/util/EnumMap;)V return-object v0 .end method