apkfuckery/com.discord/smali_classes2/okhttp3/Headers.smali
2019-12-18 10:41:56 +01:00

410 lines
8.5 KiB
Smali

.class public final Lokhttp3/Headers;
.super Ljava/lang/Object;
.source "Headers.kt"
# interfaces
.implements Ljava/lang/Iterable;
.implements Lt/u/b/z/a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/Headers$a;,
Lokhttp3/Headers$b;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"Lkotlin/Pair<",
"+",
"Ljava/lang/String;",
"+",
"Ljava/lang/String;",
">;>;",
"Lt/u/b/z/a;"
}
.end annotation
# static fields
.field public static final e:Lokhttp3/Headers$b;
# instance fields
.field public final d:[Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Lokhttp3/Headers$b;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokhttp3/Headers$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
return-void
.end method
.method public synthetic constructor <init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
return-void
.end method
.method public static final varargs a([Ljava/lang/String;)Lokhttp3/Headers;
.locals 1
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
invoke-virtual {v0, p0}, Lokhttp3/Headers$b;->a([Ljava/lang/String;)Lokhttp3/Headers;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final a(Ljava/lang/String;)Ljava/lang/String;
.locals 2
if-eqz p1, :cond_0
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
iget-object v1, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
invoke-virtual {v0, v1, p1}, Lokhttp3/Headers$b;->a([Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_0
const-string p1, "name"
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final b(Ljava/lang/String;)Ljava/util/List;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
const/4 v0, 0x0
if-eqz p1, :cond_4
const/4 v1, 0x0
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
move-result v2
:goto_0
if-ge v1, v2, :cond_2
invoke-virtual {p0, v1}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
move-result-object v3
const/4 v4, 0x1
invoke-static {p1, v3, v4}, Lt/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v3
if-eqz v3, :cond_1
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
const/4 v3, 0x2
invoke-direct {v0, v3}, Ljava/util/ArrayList;-><init>(I)V
:cond_0
invoke-virtual {p0, v1}, Lokhttp3/Headers;->h(I)Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
if-eqz v0, :cond_3
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p1
const-string v0, "Collections.unmodifiableList(result)"
invoke-static {p1, v0}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_1
:cond_3
sget-object p1, Lt/q/o;->d:Lt/q/o;
:goto_1
return-object p1
:cond_4
const-string p1, "name"
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
instance-of v0, p1, Lokhttp3/Headers;
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
check-cast p1, Lokhttp3/Headers;
iget-object p1, p1, Lokhttp3/Headers;->d:[Ljava/lang/String;
invoke-static {v0, p1}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public final g(I)Ljava/lang/String;
.locals 1
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
mul-int/lit8 p1, p1, 0x2
aget-object p1, v0, p1
return-object p1
.end method
.method public final h(I)Ljava/lang/String;
.locals 1
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
mul-int/lit8 p1, p1, 0x2
add-int/lit8 p1, p1, 0x1
aget-object p1, v0, p1
return-object p1
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public final i()Lokhttp3/Headers$a;
.locals 4
new-instance v0, Lokhttp3/Headers$a;
invoke-direct {v0}, Lokhttp3/Headers$a;-><init>()V
iget-object v1, v0, Lokhttp3/Headers$a;->a:Ljava/util/List;
iget-object v2, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
const/4 v3, 0x0
if-eqz v1, :cond_1
if-eqz v2, :cond_0
invoke-static {v2}, Le/k/a/b/e/p/g;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/Collection;->addAll(Ljava/util/Collection;)Z
return-object v0
:cond_0
const-string v0, "elements"
invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V
throw v3
:cond_1
const-string v0, "$this$addAll"
invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V
throw v3
.end method
.method public iterator()Ljava/util/Iterator;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Lkotlin/Pair<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;>;"
}
.end annotation
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
move-result v0
new-array v1, v0, [Lkotlin/Pair;
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
invoke-virtual {p0, v2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {p0, v2}, Lokhttp3/Headers;->h(I)Ljava/lang/String;
move-result-object v4
new-instance v5, Lkotlin/Pair;
invoke-direct {v5, v3, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
aput-object v5, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
invoke-static {v1}, Le/k/a/b/e/p/g;->iterator([Ljava/lang/Object;)Ljava/util/Iterator;
move-result-object v0
return-object v0
.end method
.method public final size()I
.locals 1
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
array-length v0, v0
div-int/lit8 v0, v0, 0x2
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
invoke-virtual {p0, v2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, ": "
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0, v2}, Lokhttp3/Headers;->h(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "\n"
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "StringBuilder().apply(builderAction).toString()"
invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method