.class final Lcom/google/common/base/Enums$StringConverter; .super Lcom/google/common/base/Converter; .source "Enums.java" # interfaces .implements Ljava/io/Serializable; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/base/Enums; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1a name = "StringConverter" .end annotation .annotation system Ldalvik/annotation/Signature; value = { ";>", "Lcom/google/common/base/Converter", "<", "Ljava/lang/String;", "TT;>;", "Ljava/io/Serializable;" } .end annotation # static fields .field private static final serialVersionUID:J # instance fields .field private final enumClass:Ljava/lang/Class; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Class", ";" } .end annotation .end field # direct methods .method constructor (Ljava/lang/Class;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class", ";)V" } .end annotation .prologue .line 182 invoke-direct {p0}, Lcom/google/common/base/Converter;->()V .line 183 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/Class; iput-object v0, p0, Lcom/google/common/base/Enums$StringConverter;->enumClass:Ljava/lang/Class; .line 184 return-void .end method # virtual methods .method protected bridge synthetic doBackward(Ljava/lang/Object;)Ljava/lang/Object; .locals 1 .prologue .line 177 check-cast p1, Ljava/lang/Enum; invoke-virtual {p0, p1}, Lcom/google/common/base/Enums$StringConverter;->doBackward(Ljava/lang/Enum;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method protected doBackward(Ljava/lang/Enum;)Ljava/lang/String; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)", "Ljava/lang/String;" } .end annotation .prologue .line 193 invoke-virtual {p1}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method protected doForward(Ljava/lang/String;)Ljava/lang/Enum; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", ")TT;" } .end annotation .prologue .line 188 iget-object v0, p0, Lcom/google/common/base/Enums$StringConverter;->enumClass:Ljava/lang/Class; invoke-static {v0, p1}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum; move-result-object v0 return-object v0 .end method .method protected bridge synthetic doForward(Ljava/lang/Object;)Ljava/lang/Object; .locals 1 .prologue .line 177 check-cast p1, Ljava/lang/String; invoke-virtual {p0, p1}, Lcom/google/common/base/Enums$StringConverter;->doForward(Ljava/lang/String;)Ljava/lang/Enum; move-result-object v0 return-object v0 .end method .method public equals(Ljava/lang/Object;)Z .locals 2 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .prologue .line 198 instance-of v0, p1, Lcom/google/common/base/Enums$StringConverter; if-eqz v0, :cond_0 .line 199 check-cast p1, Lcom/google/common/base/Enums$StringConverter; .line 200 iget-object v0, p0, Lcom/google/common/base/Enums$StringConverter;->enumClass:Ljava/lang/Class; iget-object v1, p1, Lcom/google/common/base/Enums$StringConverter;->enumClass:Ljava/lang/Class; invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 .line 202 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public hashCode()I .locals 1 .prologue .line 207 iget-object v0, p0, Lcom/google/common/base/Enums$StringConverter;->enumClass:Ljava/lang/Class; invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I move-result v0 return v0 .end method .method public toString()Ljava/lang/String; .locals 2 .prologue .line 212 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "Enums.stringConverter(" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lcom/google/common/base/Enums$StringConverter;->enumClass:Ljava/lang/Class; invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ".class)" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method