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

222 lines
5.5 KiB

.class public final Lcom/google/common/base/Splitter$MapSplitter;
.super Ljava/lang/Object;
.source "Splitter.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/base/Splitter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "MapSplitter"
.end annotation
# static fields
.field private static final INVALID_ENTRY_MESSAGE:Ljava/lang/String; = "Chunk [%s] is not a valid entry"
# instance fields
.field private final entrySplitter:Lcom/google/common/base/Splitter;
.field private final outerSplitter:Lcom/google/common/base/Splitter;
# direct methods
.method private constructor <init>(Lcom/google/common/base/Splitter;Lcom/google/common/base/Splitter;)V
.locals 1
.prologue
.line 479
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 480
iput-object p1, p0, Lcom/google/common/base/Splitter$MapSplitter;->outerSplitter:Lcom/google/common/base/Splitter;
.line 481
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/base/Splitter;
iput-object v0, p0, Lcom/google/common/base/Splitter$MapSplitter;->entrySplitter:Lcom/google/common/base/Splitter;
.line 482
return-void
.end method
.method synthetic constructor <init>(Lcom/google/common/base/Splitter;Lcom/google/common/base/Splitter;Lcom/google/common/base/Splitter$1;)V
.locals 0
.prologue
.line 473
invoke-direct {p0, p1, p2}, Lcom/google/common/base/Splitter$MapSplitter;-><init>(Lcom/google/common/base/Splitter;Lcom/google/common/base/Splitter;)V
return-void
.end method
# virtual methods
.method public split(Ljava/lang/CharSequence;)Ljava/util/Map;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/CharSequence;",
")",
"Ljava/util/Map",
"<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
const/4 v3, 0x1
const/4 v4, 0x0
.line 500
new-instance v5, Ljava/util/LinkedHashMap;
invoke-direct {v5}, Ljava/util/LinkedHashMap;-><init>()V
.line 501
iget-object v0, p0, Lcom/google/common/base/Splitter$MapSplitter;->outerSplitter:Lcom/google/common/base/Splitter;
invoke-virtual {v0, p1}, Lcom/google/common/base/Splitter;->split(Ljava/lang/CharSequence;)Ljava/lang/Iterable;
move-result-object v0
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v6
:goto_0
invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2
invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 502
iget-object v1, p0, Lcom/google/common/base/Splitter$MapSplitter;->entrySplitter:Lcom/google/common/base/Splitter;
invoke-static {v1, v0}, Lcom/google/common/base/Splitter;->access$000(Lcom/google/common/base/Splitter;Ljava/lang/CharSequence;)Ljava/util/Iterator;
move-result-object v7
.line 504
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const-string v2, "Chunk [%s] is not a valid entry"
new-array v8, v3, [Ljava/lang/Object;
aput-object v0, v8, v4
invoke-static {v1, v2, v8}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
.line 505
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
.line 506
invoke-interface {v5, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_0
move v2, v3
:goto_1
const-string v8, "Duplicate key [%s] found."
new-array v9, v3, [Ljava/lang/Object;
aput-object v1, v9, v4
invoke-static {v2, v8, v9}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
.line 508
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v2
const-string v8, "Chunk [%s] is not a valid entry"
new-array v9, v3, [Ljava/lang/Object;
aput-object v0, v9, v4
invoke-static {v2, v8, v9}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
.line 509
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
.line 510
invoke-interface {v5, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 512
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-nez v1, :cond_1
move v1, v3
:goto_2
const-string v2, "Chunk [%s] is not a valid entry"
new-array v7, v3, [Ljava/lang/Object;
aput-object v0, v7, v4
invoke-static {v1, v2, v7}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:cond_0
move v2, v4
.line 506
goto :goto_1
:cond_1
move v1, v4
.line 512
goto :goto_2
.line 514
:cond_2
invoke-static {v5}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
return-object v0
.end method