2019-02-04 20:08:30 +00:00
|
|
|
.class public Lkotlin/a/v;
|
|
|
|
.super Lkotlin/a/u;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "_Collections.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final Z(Ljava/util/List;)Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$first"
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p0, Ljava/util/NoSuchElementException;
|
|
|
|
|
|
|
|
const-string v0, "List is empty."
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static final a(Ljava/lang/Iterable;Ljava/lang/Appendable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;)Ljava/lang/Appendable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"A::",
|
|
|
|
"Ljava/lang/Appendable;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;TA;",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"I",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-TT;+",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
">;)TA;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$joinTo"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "buffer"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "separator"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "prefix"
|
|
|
|
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "postfix"
|
|
|
|
|
|
|
|
invoke-static {p4, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "truncated"
|
|
|
|
|
|
|
|
invoke-static {p6, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p1, p3}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-le p3, v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p1, p2}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-ltz p5, :cond_1
|
|
|
|
|
|
|
|
if-gt p3, p5, :cond_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {p1, v0, p7}, Lkotlin/text/l;->a(Ljava/lang/Appendable;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-ltz p5, :cond_3
|
|
|
|
|
|
|
|
if-le p3, p5, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p1, p6}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-interface {p1, p4}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final a(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;)Ljava/lang/String;
|
|
|
|
.locals 9
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"I",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-TT;+",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
">;)",
|
|
|
|
"Ljava/lang/String;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$joinToString"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "separator"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "prefix"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "postfix"
|
|
|
|
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "truncated"
|
|
|
|
|
|
|
|
invoke-static {p5, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Appendable;
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
move-object v3, p1
|
|
|
|
|
|
|
|
move-object v4, p2
|
|
|
|
|
|
|
|
move-object v5, p3
|
|
|
|
|
|
|
|
move v6, p4
|
|
|
|
|
|
|
|
move-object v7, p5
|
|
|
|
|
|
|
|
move-object v8, p6
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v8}, Lkotlin/a/l;->a(Ljava/lang/Iterable;Ljava/lang/Appendable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;)Ljava/lang/Appendable;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string p1, "joinTo(StringBuilder(), \u2026ed, transform).toString()"
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic a(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;I)Ljava/lang/String;
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
and-int/lit8 v0, p7, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const-string p1, ", "
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
and-int/lit8 p1, p7, 0x2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, ""
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz p1, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
move-object p2, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p2, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v2, p2
|
|
|
|
|
|
|
|
and-int/lit8 p1, p7, 0x4
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
move-object p3, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p3, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object v3, p3
|
|
|
|
|
|
|
|
and-int/lit8 p1, p7, 0x8
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
const/4 p4, -0x1
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move v4, p4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
and-int/lit8 p1, p7, 0x10
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
const-string p1, "..."
|
|
|
|
|
|
|
|
move-object p5, p1
|
|
|
|
|
|
|
|
check-cast p5, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move-object v5, p5
|
|
|
|
|
|
|
|
and-int/lit8 p1, p7, 0x20
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
const/4 p6, 0x0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move-object v6, p6
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v6}, Lkotlin/a/l;->a(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final a(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<C::",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"-TT;>;T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;TC;)TC;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$filterNotNullTo"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "destination"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final a(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;",
|
|
|
|
"Ljava/util/Comparator<",
|
|
|
|
"-TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$sortedWith"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "comparator"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-gt v1, v2, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->m(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
new-array p0, p0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lkotlin/a/g;->a([Ljava/lang/Object;Ljava/util/Comparator;)V
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/g;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-direct {p0, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-direct {p0, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_3
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->n(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lkotlin/a/l;->a(Ljava/util/List;Ljava/util/Comparator;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final a(Ljava/util/Collection;Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"+TT;>;TT;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$plus"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final a(Ljava/lang/Iterable;Ljava/lang/Object;)Z
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;TT;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$contains"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {p0, p1}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p0, p1}, Lkotlin/a/l;->b(Ljava/lang/Iterable;Ljava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-ltz p0, :cond_1
|
|
|
|
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static final aa(Ljava/util/List;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$firstOrNull"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final ab(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$last"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->W(Ljava/util/List;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p0, Ljava/util/NoSuchElementException;
|
|
|
|
|
|
|
|
const-string v0, "List is empty."
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final ac(Ljava/util/List;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$lastOrNull"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final b(Ljava/lang/Iterable;Ljava/lang/Object;)I
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;TT;)I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$indexOf"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/List;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {p0, p1}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-gez v0, :cond_1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {}, Lkotlin/a/l;->zu()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 p0, -0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final b(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"C::",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"-TT;>;>(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;TC;)TC;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$toCollection"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "destination"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final b(Ljava/lang/Iterable;I)Ljava/util/List;
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;I)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$drop"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v2, :cond_a
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->m(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v2, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
sub-int/2addr v3, p1
|
|
|
|
|
|
|
|
if-gtz v3, :cond_2
|
|
|
|
|
2019-05-08 22:54:48 +00:00
|
|
|
sget-object p0, Lkotlin/a/x;->beV:Lkotlin/a/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-ne v3, v1, :cond_3
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->h(Ljava/lang/Iterable;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->aV(Ljava/lang/Object;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1, v3}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
instance-of v3, p0, Ljava/util/List;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/RandomAccess;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-ge p1, v0, :cond_5
|
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {p0, p1}, Ljava/util/List;->listIterator(I)Ljava/util/ListIterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Iterator;
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
add-int/lit8 v3, v0, 0x1
|
|
|
|
|
|
|
|
if-lt v0, p1, :cond_8
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
move v0, v3
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {v1}, Lkotlin/a/l;->X(Ljava/util/List;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, "Requested element count "
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, " is less than zero."
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final b(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$minus"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "elements"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p1, p0}, Lkotlin/a/l;->a(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->m(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {p1, v1}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final b(Ljava/util/Collection;Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"+TT;>;",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$plus"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "elements"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
move-object p0, v0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lkotlin/a/l;->a(Ljava/util/Collection;Ljava/lang/Iterable;)Z
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final c(Ljava/lang/Iterable;I)Ljava/util/List;
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;I)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$take"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
2019-05-08 22:54:48 +00:00
|
|
|
sget-object p0, Lkotlin/a/x;->beV:Lkotlin/a/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v2, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-lt p1, v2, :cond_2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->m(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-ne p1, v1, :cond_3
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->g(Ljava/lang/Iterable;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->aV(Ljava/lang/Object;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
add-int/lit8 v3, v0, 0x1
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move v0, v3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {v1}, Lkotlin/a/l;->X(Ljava/util/List;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, "Requested element count "
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, " is less than zero."
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final d(Ljava/util/List;I)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
2019-05-03 18:53:54 +00:00
|
|
|
"+TT;>;I)TT;"
|
2019-02-04 20:08:30 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$getOrNull"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ltz p1, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->W(Ljava/util/List;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
move-result v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-gt p1, v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final g(Ljava/lang/Iterable;)Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$first"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/List;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/l;->Z(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p0, Ljava/util/NoSuchElementException;
|
|
|
|
|
|
|
|
const-string v0, "Collection is empty."
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final h(Ljava/lang/Iterable;)Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$last"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/List;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/l;->ab(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p0, Ljava/util/NoSuchElementException;
|
|
|
|
|
|
|
|
const-string v0, "Collection is empty."
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final h(Ljava/util/Collection;)[I
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;)[I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$toIntArray"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
new-array v0, v0, [I
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Number;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Number;->intValue()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
|
|
|
|
aput v2, v0, v1
|
|
|
|
|
|
|
|
move v1, v3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final i(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$filterNotNull"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/a/l;->a(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final i(Ljava/util/Collection;)Ljava/util/List;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$toMutableList"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final j(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$reversed"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->m(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->n(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/l;->reverse(Ljava/util/List;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final k(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T::",
|
|
|
|
"Ljava/lang/Comparable<",
|
|
|
|
"-TT;>;>(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$sorted"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-gt v1, v2, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->m(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
new-array p0, p0, [Ljava/lang/Comparable;
|
|
|
|
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
if-eqz p0, :cond_3
|
|
|
|
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
check-cast p0, [Ljava/lang/Comparable;
|
|
|
|
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/g;->sort([Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/g;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string v0, "null cannot be cast to non-null type kotlin.Array<kotlin.Any?>"
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final l(Ljava/lang/Iterable;)Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/HashSet<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$toHashSet"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
|
|
|
|
const/16 v1, 0xc
|
|
|
|
|
|
|
|
invoke-static {p0, v1}, Lkotlin/a/l;->a(Ljava/lang/Iterable;I)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {v1}, Lkotlin/a/ab;->cT(I)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/a/l;->b(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/HashSet;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final m(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
.locals 3
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$toList"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v0, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eq v1, v2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
invoke-static {v0}, Lkotlin/a/l;->i(Ljava/util/Collection;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
instance-of v0, p0, Ljava/util/List;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_0
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->aV(Ljava/lang/Object;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_2
|
2019-05-08 22:54:48 +00:00
|
|
|
sget-object p0, Lkotlin/a/x;->beV:Lkotlin/a/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_3
|
|
|
|
invoke-static {p0}, Lkotlin/a/l;->n(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->X(Ljava/util/List;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final n(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$toMutableList"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->i(Ljava/util/Collection;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/a/l;->b(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final o(Ljava/lang/Iterable;)Ljava/util/Set;
|
|
|
|
.locals 3
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$toSet"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-03-27 01:10:13 +00:00
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v0, :cond_3
|
2019-03-27 01:10:13 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eq v1, v2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v1, Ljava/util/LinkedHashSet;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {v0}, Lkotlin/a/ab;->cT(I)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, v1}, Lkotlin/a/l;->b(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Set;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_0
|
2019-03-27 01:10:13 +00:00
|
|
|
instance-of v0, p0, Ljava/util/List;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-03-27 01:10:13 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast p0, Ljava/util/List;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-03-27 01:10:13 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1
|
2019-03-27 01:10:13 +00:00
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_0
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/ai;->aW(Ljava/lang/Object;)Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_2
|
2019-05-08 22:54:48 +00:00
|
|
|
sget-object p0, Lkotlin/a/z;->beX:Lkotlin/a/z;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Set;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_3
|
2019-03-27 01:10:13 +00:00
|
|
|
new-instance v0, Ljava/util/LinkedHashSet;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/a/l;->b(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Set;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/ai;->e(Ljava/util/Set;)Ljava/util/Set;
|
2019-03-27 01:10:13 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final p(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$distinct"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->q(Ljava/lang/Iterable;)Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Iterable;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->m(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final q(Ljava/lang/Iterable;)Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$toMutableSet"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/LinkedHashSet;
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/LinkedHashSet;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Set;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/util/LinkedHashSet;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/a/l;->b(Ljava/lang/Iterable;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Set;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final r(Ljava/lang/Iterable;)Ljava/lang/Comparable;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T::",
|
|
|
|
"Ljava/lang/Comparable<",
|
|
|
|
"-TT;>;>(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$max"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Comparable;
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Comparable;
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-gez v2, :cond_1
|
|
|
|
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final s(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Lkotlin/sequences/Sequence<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$asSequence"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Lkotlin/a/v$a;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lkotlin/a/v$a;-><init>(Ljava/lang/Iterable;)V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/sequences/Sequence;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final t(Ljava/lang/Iterable;)D
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 5
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
">;)D"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$average"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/Number;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Number;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
long-to-double v3, v3
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
|
|
|
|
add-double/2addr v0, v3
|
|
|
|
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {}, Lkotlin/a/l;->zv()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
|
2019-05-08 22:54:48 +00:00
|
|
|
sget-object p0, Lkotlin/jvm/internal/g;->bfC:Lkotlin/jvm/internal/g;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {}, Lkotlin/jvm/internal/g;->zG()D
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
int-to-double v2, v2
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
|
|
|
|
div-double/2addr v0, v2
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final u(Ljava/lang/Iterable;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;)I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$sum"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Number;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public static final v(Ljava/lang/Iterable;)J
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
">;)J"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$sum"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Number;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Number;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-wide v0
|
|
|
|
.end method
|