今奥全景相机
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.

234 lines
6.3 KiB

.class public final Lcom/google/common/collect/MutableClassToInstanceMap;
.super Lcom/google/common/collect/MapConstraints$ConstrainedMap;
.source "MutableClassToInstanceMap.java"
# interfaces
.implements Lcom/google/common/collect/ClassToInstanceMap;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<B:",
"Ljava/lang/Object;",
">",
"Lcom/google/common/collect/MapConstraints$ConstrainedMap",
"<",
"Ljava/lang/Class",
"<+TB;>;TB;>;",
"Lcom/google/common/collect/ClassToInstanceMap",
"<TB;>;"
}
.end annotation
# static fields
.field private static final VALUE_CAN_BE_CAST_TO_KEY:Lcom/google/common/collect/MapConstraint;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/MapConstraint",
"<",
"Ljava/lang/Class",
"<*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private static final serialVersionUID:J
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
.line 63
new-instance v0, Lcom/google/common/collect/MutableClassToInstanceMap$1;
invoke-direct {v0}, Lcom/google/common/collect/MutableClassToInstanceMap$1;-><init>()V
sput-object v0, Lcom/google/common/collect/MutableClassToInstanceMap;->VALUE_CAN_BE_CAST_TO_KEY:Lcom/google/common/collect/MapConstraint;
return-void
.end method
.method private constructor <init>(Ljava/util/Map;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map",
"<",
"Ljava/lang/Class",
"<+TB;>;TB;>;)V"
}
.end annotation
.prologue
.line 60
sget-object v0, Lcom/google/common/collect/MutableClassToInstanceMap;->VALUE_CAN_BE_CAST_TO_KEY:Lcom/google/common/collect/MapConstraint;
invoke-direct {p0, p1, v0}, Lcom/google/common/collect/MapConstraints$ConstrainedMap;-><init>(Ljava/util/Map;Lcom/google/common/collect/MapConstraint;)V
.line 61
return-void
.end method
.method static synthetic access$000(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.prologue
.line 36
invoke-static {p0, p1}, Lcom/google/common/collect/MutableClassToInstanceMap;->cast(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.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 82
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
.method public static create()Lcom/google/common/collect/MutableClassToInstanceMap;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<B:",
"Ljava/lang/Object;",
">()",
"Lcom/google/common/collect/MutableClassToInstanceMap",
"<TB;>;"
}
.end annotation
.prologue
.line 45
new-instance v0, Lcom/google/common/collect/MutableClassToInstanceMap;
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
invoke-direct {v0, v1}, Lcom/google/common/collect/MutableClassToInstanceMap;-><init>(Ljava/util/Map;)V
return-object v0
.end method
.method public static create(Ljava/util/Map;)Lcom/google/common/collect/MutableClassToInstanceMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<B:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map",
"<",
"Ljava/lang/Class",
"<+TB;>;TB;>;)",
"Lcom/google/common/collect/MutableClassToInstanceMap",
"<TB;>;"
}
.end annotation
.prologue
.line 56
new-instance v0, Lcom/google/common/collect/MutableClassToInstanceMap;
invoke-direct {v0, p0}, Lcom/google/common/collect/MutableClassToInstanceMap;-><init>(Ljava/util/Map;)V
return-object v0
.end method
# virtual methods
.method public bridge synthetic entrySet()Ljava/util/Set;
.locals 1
.prologue
.line 36
invoke-super {p0}, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->entrySet()Ljava/util/Set;
move-result-object v0
return-object v0
.end method
.method public getInstance(Ljava/lang/Class;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:TB;>(",
"Ljava/lang/Class",
"<TT;>;)TT;"
}
.end annotation
.prologue
.line 78
invoke-virtual {p0, p1}, Lcom/google/common/collect/MutableClassToInstanceMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-static {p1, v0}, Lcom/google/common/collect/MutableClassToInstanceMap;->cast(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic putAll(Ljava/util/Map;)V
.locals 0
.prologue
.line 36
invoke-super {p0, p1}, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->putAll(Ljava/util/Map;)V
return-void
.end method
.method public putInstance(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:TB;>(",
"Ljava/lang/Class",
"<TT;>;TT;)TT;"
}
.end annotation
.prologue
.line 73
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/MutableClassToInstanceMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-static {p1, v0}, Lcom/google/common/collect/MutableClassToInstanceMap;->cast(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method