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.
1163 lines
31 KiB
1163 lines
31 KiB
.class public abstract Lcom/google/common/collect/ImmutableMap; |
|
.super Ljava/lang/Object; |
|
.source "ImmutableMap.java" |
|
|
|
# interfaces |
|
.implements Ljava/io/Serializable; |
|
.implements Ljava/util/Map; |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
emulated = true |
|
serializable = true |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/google/common/collect/ImmutableMap$SerializedForm;, |
|
Lcom/google/common/collect/ImmutableMap$MapViewOfValuesAsSingletonSets;, |
|
Lcom/google/common/collect/ImmutableMap$Builder; |
|
} |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;", |
|
"Ljava/io/Serializable;", |
|
"Ljava/util/Map", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final EMPTY_ENTRY_ARRAY:[Ljava/util/Map$Entry; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"[", |
|
"Ljava/util/Map$Entry", |
|
"<**>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# instance fields |
|
.field private transient entrySet:Lcom/google/common/collect/ImmutableSet; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<", |
|
"Ljava/util/Map$Entry", |
|
"<TK;TV;>;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field private transient keySet:Lcom/google/common/collect/ImmutableSet; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field private transient multimapView:Lcom/google/common/collect/ImmutableSetMultimap; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Lcom/google/common/collect/ImmutableSetMultimap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field private transient values:Lcom/google/common/collect/ImmutableCollection; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Lcom/google/common/collect/ImmutableCollection", |
|
"<TV;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method static constructor <clinit>()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 313 |
|
const/4 v0, 0x0 |
|
|
|
new-array v0, v0, [Ljava/util/Map$Entry; |
|
|
|
sput-object v0, Lcom/google/common/collect/ImmutableMap;->EMPTY_ENTRY_ARRAY:[Ljava/util/Map$Entry; |
|
|
|
return-void |
|
.end method |
|
|
|
.method constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 315 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public static builder()Lcom/google/common/collect/ImmutableMap$Builder; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">()", |
|
"Lcom/google/common/collect/ImmutableMap$Builder", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 144 |
|
new-instance v0, Lcom/google/common/collect/ImmutableMap$Builder; |
|
|
|
invoke-direct {v0}, Lcom/google/common/collect/ImmutableMap$Builder;-><init>()V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static checkNoConflict(ZLjava/lang/String;Ljava/util/Map$Entry;Ljava/util/Map$Entry;)V |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(Z", |
|
"Ljava/lang/String;", |
|
"Ljava/util/Map$Entry", |
|
"<**>;", |
|
"Ljava/util/Map$Entry", |
|
"<**>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 149 |
|
if-nez p0, :cond_0 |
|
|
|
.line 150 |
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "Multiple entries with same " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, ": " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, " and " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 153 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public static copyOf(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/Map", |
|
"<+TK;+TV;>;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 273 |
|
instance-of v0, p0, Lcom/google/common/collect/ImmutableMap; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
instance-of v0, p0, Lcom/google/common/collect/ImmutableSortedMap; |
|
|
|
if-nez v0, :cond_0 |
|
|
|
move-object v0, p0 |
|
|
|
.line 278 |
|
check-cast v0, Lcom/google/common/collect/ImmutableMap; |
|
|
|
.line 279 |
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMap;->isPartialView()Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_1 |
|
|
|
.line 294 |
|
:goto_0 |
|
return-object v0 |
|
|
|
.line 282 |
|
:cond_0 |
|
instance-of v0, p0, Ljava/util/EnumMap; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 283 |
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableMap;->copyOfEnumMapUnsafe(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 285 |
|
:cond_1 |
|
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
sget-object v1, Lcom/google/common/collect/ImmutableMap;->EMPTY_ENTRY_ARRAY:[Ljava/util/Map$Entry; |
|
|
|
invoke-interface {v0, v1}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, [Ljava/util/Map$Entry; |
|
|
|
.line 286 |
|
array-length v1, v0 |
|
|
|
packed-switch v1, :pswitch_data_0 |
|
|
|
.line 294 |
|
new-instance v1, Lcom/google/common/collect/RegularImmutableMap; |
|
|
|
invoke-direct {v1, v0}, Lcom/google/common/collect/RegularImmutableMap;-><init>([Ljava/util/Map$Entry;)V |
|
|
|
move-object v0, v1 |
|
|
|
goto :goto_0 |
|
|
|
.line 288 |
|
:pswitch_0 |
|
invoke-static {}, Lcom/google/common/collect/ImmutableMap;->of()Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 291 |
|
:pswitch_1 |
|
const/4 v1, 0x0 |
|
|
|
aget-object v0, v0, v1 |
|
|
|
.line 292 |
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v1, v0}, Lcom/google/common/collect/ImmutableMap;->of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 286 |
|
nop |
|
|
|
:pswitch_data_0 |
|
.packed-switch 0x0 |
|
:pswitch_0 |
|
:pswitch_1 |
|
.end packed-switch |
|
.end method |
|
|
|
.method private static copyOfEnumMap(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Enum", |
|
"<TK;>;V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/Map", |
|
"<TK;+TV;>;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 306 |
|
new-instance v1, Ljava/util/EnumMap; |
|
|
|
invoke-direct {v1, p0}, Ljava/util/EnumMap;-><init>(Ljava/util/Map;)V |
|
|
|
.line 307 |
|
invoke-virtual {v1}, Ljava/util/EnumMap;->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 308 |
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v3 |
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v3, v0}, Lcom/google/common/collect/CollectPreconditions;->checkEntryNotNull(Ljava/lang/Object;Ljava/lang/Object;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 310 |
|
:cond_0 |
|
invoke-static {v1}, Lcom/google/common/collect/ImmutableEnumMap;->asImmutable(Ljava/util/EnumMap;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private static copyOfEnumMapUnsafe(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/Map", |
|
"<+TK;+TV;>;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 301 |
|
check-cast p0, Ljava/util/EnumMap; |
|
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableMap;->copyOfEnumMap(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private createMultimapView()Lcom/google/common/collect/ImmutableSetMultimap; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableSetMultimap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 441 |
|
invoke-direct {p0}, Lcom/google/common/collect/ImmutableMap;->viewMapValuesAsSingletonSets()Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
.line 442 |
|
new-instance v1, Lcom/google/common/collect/ImmutableSetMultimap; |
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMap;->size()I |
|
|
|
move-result v2 |
|
|
|
const/4 v3, 0x0 |
|
|
|
invoke-direct {v1, v0, v2, v3}, Lcom/google/common/collect/ImmutableSetMultimap;-><init>(Lcom/google/common/collect/ImmutableMap;ILjava/util/Comparator;)V |
|
|
|
return-object v1 |
|
.end method |
|
|
|
.method static entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(TK;TV;)", |
|
"Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 135 |
|
invoke-static {p0, p1}, Lcom/google/common/collect/CollectPreconditions;->checkEntryNotNull(Ljava/lang/Object;Ljava/lang/Object;)V |
|
|
|
.line 136 |
|
new-instance v0, Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static of()Lcom/google/common/collect/ImmutableMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">()", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 70 |
|
invoke-static {}, Lcom/google/common/collect/ImmutableBiMap;->of()Lcom/google/common/collect/ImmutableBiMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(TK;TV;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 80 |
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableBiMap;->of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableBiMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(TK;TV;TK;TV;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 89 |
|
new-instance v0, Lcom/google/common/collect/RegularImmutableMap; |
|
|
|
const/4 v1, 0x2 |
|
|
|
new-array v1, v1, [Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x1 |
|
|
|
invoke-static {p2, p3}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/RegularImmutableMap;-><init>([Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(TK;TV;TK;TV;TK;TV;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 99 |
|
new-instance v0, Lcom/google/common/collect/RegularImmutableMap; |
|
|
|
const/4 v1, 0x3 |
|
|
|
new-array v1, v1, [Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x1 |
|
|
|
invoke-static {p2, p3}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x2 |
|
|
|
invoke-static {p4, p5}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/RegularImmutableMap;-><init>([Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(TK;TV;TK;TV;TK;TV;TK;TV;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 110 |
|
new-instance v0, Lcom/google/common/collect/RegularImmutableMap; |
|
|
|
const/4 v1, 0x4 |
|
|
|
new-array v1, v1, [Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x1 |
|
|
|
invoke-static {p2, p3}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x2 |
|
|
|
invoke-static {p4, p5}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x3 |
|
|
|
invoke-static {p6, p7}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/RegularImmutableMap;-><init>([Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(TK;TV;TK;TV;TK;TV;TK;TV;TK;TV;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 121 |
|
new-instance v0, Lcom/google/common/collect/RegularImmutableMap; |
|
|
|
const/4 v1, 0x5 |
|
|
|
new-array v1, v1, [Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x1 |
|
|
|
invoke-static {p2, p3}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x2 |
|
|
|
invoke-static {p4, p5}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x3 |
|
|
|
invoke-static {p6, p7}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
const/4 v2, 0x4 |
|
|
|
invoke-static {p8, p9}, Lcom/google/common/collect/ImmutableMap;->entryOf(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v1, v2 |
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/RegularImmutableMap;-><init>([Lcom/google/common/collect/ImmutableMapEntry$TerminalEntry;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private viewMapValuesAsSingletonSets()Lcom/google/common/collect/ImmutableMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;", |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<TV;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 446 |
|
new-instance v0, Lcom/google/common/collect/ImmutableMap$MapViewOfValuesAsSingletonSets; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableMap$MapViewOfValuesAsSingletonSets;-><init>(Lcom/google/common/collect/ImmutableMap;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public asMultimap()Lcom/google/common/collect/ImmutableSetMultimap; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableSetMultimap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 436 |
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableMap;->multimapView:Lcom/google/common/collect/ImmutableSetMultimap; |
|
|
|
.line 437 |
|
if-nez v0, :cond_0 |
|
|
|
invoke-direct {p0}, Lcom/google/common/collect/ImmutableMap;->createMultimapView()Lcom/google/common/collect/ImmutableSetMultimap; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/google/common/collect/ImmutableMap;->multimapView:Lcom/google/common/collect/ImmutableSetMultimap; |
|
|
|
:cond_0 |
|
return-object v0 |
|
.end method |
|
|
|
.method public final clear()V |
|
.locals 1 |
|
.annotation runtime Ljava/lang/Deprecated; |
|
.end annotation |
|
|
|
.prologue |
|
.line 362 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public containsKey(Ljava/lang/Object;)Z |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 372 |
|
invoke-virtual {p0, p1}, Lcom/google/common/collect/ImmutableMap;->get(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public containsValue(Ljava/lang/Object;)Z |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 377 |
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->values()Lcom/google/common/collect/ImmutableCollection; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p1}, Lcom/google/common/collect/ImmutableCollection;->contains(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method abstract createEntrySet()Lcom/google/common/collect/ImmutableSet; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<", |
|
"Ljava/util/Map$Entry", |
|
"<TK;TV;>;>;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method createKeySet()Lcom/google/common/collect/ImmutableSet; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 411 |
|
new-instance v0, Lcom/google/common/collect/ImmutableMapKeySet; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableMapKeySet;-><init>(Lcom/google/common/collect/ImmutableMap;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public entrySet()Lcom/google/common/collect/ImmutableSet; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<", |
|
"Ljava/util/Map$Entry", |
|
"<TK;TV;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 392 |
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableMap;->entrySet:Lcom/google/common/collect/ImmutableSet; |
|
|
|
.line 393 |
|
if-nez v0, :cond_0 |
|
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->createEntrySet()Lcom/google/common/collect/ImmutableSet; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/google/common/collect/ImmutableMap;->entrySet:Lcom/google/common/collect/ImmutableSet; |
|
|
|
:cond_0 |
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic entrySet()Ljava/util/Set; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 60 |
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->entrySet()Lcom/google/common/collect/ImmutableSet; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public equals(Ljava/lang/Object;)Z |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 507 |
|
invoke-static {p0, p1}, Lcom/google/common/collect/Maps;->equalsImpl(Ljava/util/Map;Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public abstract get(Ljava/lang/Object;)Ljava/lang/Object; |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Object;", |
|
")TV;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public hashCode()I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 515 |
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->entrySet()Lcom/google/common/collect/ImmutableSet; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableSet;->hashCode()I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public isEmpty()Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 367 |
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->size()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method abstract isPartialView()Z |
|
.end method |
|
|
|
.method public keySet()Lcom/google/common/collect/ImmutableSet; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 406 |
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableMap;->keySet:Lcom/google/common/collect/ImmutableSet; |
|
|
|
.line 407 |
|
if-nez v0, :cond_0 |
|
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->createKeySet()Lcom/google/common/collect/ImmutableSet; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/google/common/collect/ImmutableMap;->keySet:Lcom/google/common/collect/ImmutableSet; |
|
|
|
:cond_0 |
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic keySet()Ljava/util/Set; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 60 |
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->keySet()Lcom/google/common/collect/ImmutableSet; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;TV;)TV;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljava/lang/Deprecated; |
|
.end annotation |
|
|
|
.prologue |
|
.line 326 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public final putAll(Ljava/util/Map;)V |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/Map", |
|
"<+TK;+TV;>;)V" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljava/lang/Deprecated; |
|
.end annotation |
|
|
|
.prologue |
|
.line 350 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public final remove(Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Object;", |
|
")TV;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljava/lang/Deprecated; |
|
.end annotation |
|
|
|
.prologue |
|
.line 338 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public toString()Ljava/lang/String; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 519 |
|
invoke-static {p0}, Lcom/google/common/collect/Maps;->toStringImpl(Ljava/util/Map;)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public values()Lcom/google/common/collect/ImmutableCollection; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableCollection", |
|
"<TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 422 |
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableMap;->values:Lcom/google/common/collect/ImmutableCollection; |
|
|
|
.line 423 |
|
if-nez v0, :cond_0 |
|
|
|
new-instance v0, Lcom/google/common/collect/ImmutableMapValues; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableMapValues;-><init>(Lcom/google/common/collect/ImmutableMap;)V |
|
|
|
iput-object v0, p0, Lcom/google/common/collect/ImmutableMap;->values:Lcom/google/common/collect/ImmutableCollection; |
|
|
|
:cond_0 |
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic values()Ljava/util/Collection; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 60 |
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableMap;->values()Lcom/google/common/collect/ImmutableCollection; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method writeReplace()Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 554 |
|
new-instance v0, Lcom/google/common/collect/ImmutableMap$SerializedForm; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableMap$SerializedForm;-><init>(Lcom/google/common/collect/ImmutableMap;)V |
|
|
|
return-object v0 |
|
.end method
|
|
|