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.
434 lines
11 KiB
434 lines
11 KiB
.class public final Lcom/google/common/collect/EnumHashBiMap; |
|
.super Lcom/google/common/collect/AbstractBiMap; |
|
.source "EnumHashBiMap.java" |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
emulated = true |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Enum", |
|
"<TK;>;V:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Lcom/google/common/collect/AbstractBiMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final serialVersionUID:J |
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "only needed in emulated source." |
|
.end annotation |
|
.end field |
|
|
|
|
|
# instance fields |
|
.field private transient keyType:Ljava/lang/Class; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/lang/Class", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>(Ljava/lang/Class;)V |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Class", |
|
"<TK;>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 79 |
|
new-instance v0, Ljava/util/EnumMap; |
|
|
|
invoke-direct {v0, p1}, Ljava/util/EnumMap;-><init>(Ljava/lang/Class;)V |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/WellBehavedMap;->wrap(Ljava/util/Map;)Lcom/google/common/collect/WellBehavedMap; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getEnumConstants()[Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, [Ljava/lang/Enum; |
|
|
|
array-length v0, v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Maps;->newHashMapWithExpectedSize(I)Ljava/util/HashMap; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {p0, v1, v0}, Lcom/google/common/collect/AbstractBiMap;-><init>(Ljava/util/Map;Ljava/util/Map;)V |
|
|
|
.line 83 |
|
iput-object p1, p0, Lcom/google/common/collect/EnumHashBiMap;->keyType:Ljava/lang/Class; |
|
|
|
.line 84 |
|
return-void |
|
.end method |
|
|
|
.method public static create(Ljava/lang/Class;)Lcom/google/common/collect/EnumHashBiMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Enum", |
|
"<TK;>;V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Class", |
|
"<TK;>;)", |
|
"Lcom/google/common/collect/EnumHashBiMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 58 |
|
new-instance v0, Lcom/google/common/collect/EnumHashBiMap; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/EnumHashBiMap;-><init>(Ljava/lang/Class;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static create(Ljava/util/Map;)Lcom/google/common/collect/EnumHashBiMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Enum", |
|
"<TK;>;V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/Map", |
|
"<TK;+TV;>;)", |
|
"Lcom/google/common/collect/EnumHashBiMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 73 |
|
invoke-static {p0}, Lcom/google/common/collect/EnumBiMap;->inferKeyType(Ljava/util/Map;)Ljava/lang/Class; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/EnumHashBiMap;->create(Ljava/lang/Class;)Lcom/google/common/collect/EnumHashBiMap; |
|
|
|
move-result-object v0 |
|
|
|
.line 74 |
|
invoke-virtual {v0, p0}, Lcom/google/common/collect/EnumHashBiMap;->putAll(Ljava/util/Map;)V |
|
|
|
.line 75 |
|
return-object v0 |
|
.end method |
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V |
|
.locals 3 |
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "java.io.ObjectInputStream" |
|
.end annotation |
|
|
|
.prologue |
|
.line 121 |
|
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V |
|
|
|
.line 122 |
|
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/Class; |
|
|
|
iput-object v0, p0, Lcom/google/common/collect/EnumHashBiMap;->keyType:Ljava/lang/Class; |
|
|
|
.line 123 |
|
new-instance v0, Ljava/util/EnumMap; |
|
|
|
iget-object v1, p0, Lcom/google/common/collect/EnumHashBiMap;->keyType:Ljava/lang/Class; |
|
|
|
invoke-direct {v0, v1}, Ljava/util/EnumMap;-><init>(Ljava/lang/Class;)V |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/WellBehavedMap;->wrap(Ljava/util/Map;)Lcom/google/common/collect/WellBehavedMap; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Ljava/util/HashMap; |
|
|
|
iget-object v0, p0, Lcom/google/common/collect/EnumHashBiMap;->keyType:Ljava/lang/Class; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getEnumConstants()[Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, [Ljava/lang/Enum; |
|
|
|
array-length v0, v0 |
|
|
|
mul-int/lit8 v0, v0, 0x3 |
|
|
|
div-int/lit8 v0, v0, 0x2 |
|
|
|
invoke-direct {v2, v0}, Ljava/util/HashMap;-><init>(I)V |
|
|
|
invoke-virtual {p0, v1, v2}, Lcom/google/common/collect/EnumHashBiMap;->setDelegates(Ljava/util/Map;Ljava/util/Map;)V |
|
|
|
.line 125 |
|
invoke-static {p0, p1}, Lcom/google/common/collect/Serialization;->populateMap(Ljava/util/Map;Ljava/io/ObjectInputStream;)V |
|
|
|
.line 126 |
|
return-void |
|
.end method |
|
|
|
.method private writeObject(Ljava/io/ObjectOutputStream;)V |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "java.io.ObjectOutputStream" |
|
.end annotation |
|
|
|
.prologue |
|
.line 112 |
|
invoke-virtual {p1}, Ljava/io/ObjectOutputStream;->defaultWriteObject()V |
|
|
|
.line 113 |
|
iget-object v0, p0, Lcom/google/common/collect/EnumHashBiMap;->keyType:Ljava/lang/Class; |
|
|
|
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V |
|
|
|
.line 114 |
|
invoke-static {p0, p1}, Lcom/google/common/collect/Serialization;->writeMap(Ljava/util/Map;Ljava/io/ObjectOutputStream;)V |
|
|
|
.line 115 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method checkKey(Ljava/lang/Enum;)Ljava/lang/Enum; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;)TK;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 90 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/Enum; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method bridge synthetic checkKey(Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
check-cast p1, Ljava/lang/Enum; |
|
|
|
invoke-virtual {p0, p1}, Lcom/google/common/collect/EnumHashBiMap;->checkKey(Ljava/lang/Enum;)Ljava/lang/Enum; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic clear()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 46 |
|
invoke-super {p0}, Lcom/google/common/collect/AbstractBiMap;->clear()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public bridge synthetic containsValue(Ljava/lang/Object;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
invoke-super {p0, p1}, Lcom/google/common/collect/AbstractBiMap;->containsValue(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public bridge synthetic entrySet()Ljava/util/Set; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
invoke-super {p0}, Lcom/google/common/collect/AbstractBiMap;->entrySet()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public forcePut(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.param p2 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;TV;)TV;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 98 |
|
invoke-super {p0, p1, p2}, Lcom/google/common/collect/AbstractBiMap;->forcePut(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic forcePut(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
check-cast p1, Ljava/lang/Enum; |
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/EnumHashBiMap;->forcePut(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic inverse()Lcom/google/common/collect/BiMap; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
invoke-super {p0}, Lcom/google/common/collect/AbstractBiMap;->inverse()Lcom/google/common/collect/BiMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic keySet()Ljava/util/Set; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
invoke-super {p0}, Lcom/google/common/collect/AbstractBiMap;->keySet()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public keyType()Ljava/lang/Class; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/lang/Class", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 103 |
|
iget-object v0, p0, Lcom/google/common/collect/EnumHashBiMap;->keyType:Ljava/lang/Class; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.param p2 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;TV;)TV;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 94 |
|
invoke-super {p0, p1, p2}, Lcom/google/common/collect/AbstractBiMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
check-cast p1, Ljava/lang/Enum; |
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/EnumHashBiMap;->put(Ljava/lang/Enum;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 46 |
|
invoke-super {p0, p1}, Lcom/google/common/collect/AbstractBiMap;->putAll(Ljava/util/Map;)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public bridge synthetic remove(Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
invoke-super {p0, p1}, Lcom/google/common/collect/AbstractBiMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic values()Ljava/util/Set; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
invoke-super {p0}, Lcom/google/common/collect/AbstractBiMap;->values()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method
|
|
|