You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
196 lines
5.6 KiB
196 lines
5.6 KiB
.class public final Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder; |
|
.super Ljava/lang/Object; |
|
.source "ImmutableClassToInstanceMap.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/google/common/collect/ImmutableClassToInstanceMap; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x19 |
|
name = "Builder" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<B:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;" |
|
} |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private final mapBuilder:Lcom/google/common/collect/ImmutableMap$Builder; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Lcom/google/common/collect/ImmutableMap$Builder", |
|
"<", |
|
"Ljava/lang/Class", |
|
"<+TB;>;TB;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 65 |
|
invoke-static {}, Lcom/google/common/collect/ImmutableMap;->builder()Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder;->mapBuilder:Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
return-void |
|
.end method |
|
|
|
.method private static cast(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<B:", |
|
"Ljava/lang/Object;", |
|
"T:TB;>(", |
|
"Ljava/lang/Class", |
|
"<TT;>;TB;)TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 97 |
|
invoke-static {p0}, Lcom/google/common/primitives/Primitives;->wrap(Ljava/lang/Class;)Ljava/lang/Class; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public build()Lcom/google/common/collect/ImmutableClassToInstanceMap; |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableClassToInstanceMap", |
|
"<TB;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 107 |
|
new-instance v0, Lcom/google/common/collect/ImmutableClassToInstanceMap; |
|
|
|
iget-object v1, p0, Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder;->mapBuilder:Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
invoke-virtual {v1}, Lcom/google/common/collect/ImmutableMap$Builder;->build()Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-direct {v0, v1, v2}, Lcom/google/common/collect/ImmutableClassToInstanceMap;-><init>(Lcom/google/common/collect/ImmutableMap;Lcom/google/common/collect/ImmutableClassToInstanceMap$1;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public put(Ljava/lang/Class;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:TB;>(", |
|
"Ljava/lang/Class", |
|
"<TT;>;TT;)", |
|
"Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder", |
|
"<TB;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 73 |
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder;->mapBuilder:Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
.line 74 |
|
return-object p0 |
|
.end method |
|
|
|
.method public putAll(Ljava/util/Map;)Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:TB;>(", |
|
"Ljava/util/Map", |
|
"<+", |
|
"Ljava/lang/Class", |
|
"<+TT;>;+TT;>;)", |
|
"Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder", |
|
"<TB;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 88 |
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v2 |
|
|
|
:goto_0 |
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/util/Map$Entry; |
|
|
|
.line 89 |
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
check-cast v1, Ljava/lang/Class; |
|
|
|
.line 90 |
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
.line 91 |
|
iget-object v3, p0, Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder;->mapBuilder:Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
invoke-static {v1, v0}, Lcom/google/common/collect/ImmutableClassToInstanceMap$Builder;->cast(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v3, v1, v0}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
goto :goto_0 |
|
|
|
.line 93 |
|
:cond_0 |
|
return-object p0 |
|
.end method
|
|
|