.class public final Lcom/google/common/base/Defaults; .super Ljava/lang/Object; .source "Defaults.java" # static fields .field private static final DEFAULTS:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map", "<", "Ljava/lang/Class", "<*>;", "Ljava/lang/Object;", ">;" } .end annotation .end field # direct methods .method static constructor ()V .locals 4 .prologue const/4 v3, 0x0 .line 38 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V .line 39 sget-object v1, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class; invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 40 sget-object v1, Ljava/lang/Character;->TYPE:Ljava/lang/Class; invoke-static {v3}, Ljava/lang/Character;->valueOf(C)Ljava/lang/Character; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 41 sget-object v1, Ljava/lang/Byte;->TYPE:Ljava/lang/Class; invoke-static {v3}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 42 sget-object v1, Ljava/lang/Short;->TYPE:Ljava/lang/Class; invoke-static {v3}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 43 sget-object v1, Ljava/lang/Integer;->TYPE:Ljava/lang/Class; invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 44 sget-object v1, Ljava/lang/Long;->TYPE:Ljava/lang/Class; const-wide/16 v2, 0x0 invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 45 sget-object v1, Ljava/lang/Float;->TYPE:Ljava/lang/Class; const/4 v2, 0x0 invoke-static {v2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 46 sget-object v1, Ljava/lang/Double;->TYPE:Ljava/lang/Class; const-wide/16 v2, 0x0 invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v2 invoke-static {v0, v1, v2}, Lcom/google/common/base/Defaults;->put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .line 47 invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map; move-result-object v0 sput-object v0, Lcom/google/common/base/Defaults;->DEFAULTS:Ljava/util/Map; .line 48 return-void .end method .method private constructor ()V .locals 0 .prologue .line 32 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static defaultValue(Ljava/lang/Class;)Ljava/lang/Object; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class", ";)TT;" } .end annotation .prologue .line 62 sget-object v0, Lcom/google/common/base/Defaults;->DEFAULTS:Ljava/util/Map; invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 .line 63 return-object v0 .end method .method private static put(Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Object;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map", "<", "Ljava/lang/Class", "<*>;", "Ljava/lang/Object;", ">;", "Ljava/lang/Class", ";TT;)V" } .end annotation .prologue .line 51 invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 52 return-void .end method