2019-07-24 11:27:29 +00:00
|
|
|
.class public Lkotlin/a/o;
|
|
|
|
.super Lkotlin/a/n;
|
2019-07-31 00:08:31 +00:00
|
|
|
.source "Collections.kt"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final varargs arrayListOf([Ljava/lang/Object;)Ljava/util/ArrayList;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const-string v0, "elements"
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
array-length v0, p0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-nez v0, :cond_0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
new-instance p0, Ljava/util/ArrayList;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
return-object p0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
new-instance v1, Lkotlin/a/f;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const/4 v2, 0x1
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-direct {v1, p0, v2}, Lkotlin/a/f;-><init>([Ljava/lang/Object;Z)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
return-object v0
|
2019-07-31 00:08:31 +00:00
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final asCollection([Ljava/lang/Object;)Ljava/util/Collection;
|
|
|
|
.locals 2
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
2019-10-09 23:16:36 +00:00
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"TT;>;"
|
2019-07-24 11:27:29 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const-string v0, "$this$asCollection"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
new-instance v0, Lkotlin/a/f;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const/4 v1, 0x0
|
2019-07-26 06:05:06 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-direct {v0, p0, v1}, Lkotlin/a/f;-><init>([Ljava/lang/Object;Z)V
|
2019-07-29 20:14:17 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
return-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
.method public static final binarySearch(Ljava/util/List;Ljava/lang/Comparable;II)I
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T::",
|
|
|
|
"Ljava/lang/Comparable<",
|
|
|
|
"-TT;>;>(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+TT;>;TT;II)I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$binarySearch"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const-string v1, ")."
|
|
|
|
|
|
|
|
const-string v2, "fromIndex ("
|
|
|
|
|
|
|
|
if-gt p2, p3, :cond_5
|
|
|
|
|
|
|
|
if-ltz p2, :cond_4
|
|
|
|
|
|
|
|
if-gt p3, v0, :cond_3
|
|
|
|
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-gt p2, p3, :cond_2
|
|
|
|
|
|
|
|
add-int v0, p2, p3
|
|
|
|
|
|
|
|
ushr-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Comparable;
|
|
|
|
|
|
|
|
invoke-static {v1, p1}, Lkotlin/b/a;->compareValues(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
|
|
|
|
add-int/lit8 p2, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
|
|
|
|
add-int/lit8 p3, v0, -0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
|
|
|
|
neg-int p0, p2
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p2, "toIndex ("
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p2, ") is greater than size ("
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p2, ") is less than zero."
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p2, ") is greater than toIndex ("
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic binarySearch$default(Ljava/util/List;Ljava/lang/Comparable;IIILjava/lang/Object;)I
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {p0, p1, p2, p3}, Lkotlin/a/m;->binarySearch(Ljava/util/List;Ljava/lang/Comparable;II)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final emptyList()Ljava/util/List;
|
|
|
|
.locals 1
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
2019-10-09 23:16:36 +00:00
|
|
|
">()",
|
2019-07-31 00:08:31 +00:00
|
|
|
"Ljava/util/List<",
|
2019-07-24 11:27:29 +00:00
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-06 01:29:57 +00:00
|
|
|
sget-object v0, Lkotlin/a/y;->bgU:Lkotlin/a/y;
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
check-cast v0, Ljava/util/List;
|
2019-07-26 02:05:13 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
return-object v0
|
2019-07-31 00:08:31 +00:00
|
|
|
.end method
|
2019-07-26 02:05:13 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final getIndices(Ljava/util/Collection;)Lkotlin/ranges/IntRange;
|
2019-07-31 00:08:31 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"*>;)",
|
|
|
|
"Lkotlin/ranges/IntRange;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
const-string v0, "$this$indices"
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
new-instance v0, Lkotlin/ranges/IntRange;
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
move-result p0
|
|
|
|
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
const/4 v1, 0x0
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-direct {v0, v1, p0}, Lkotlin/ranges/IntRange;-><init>(II)V
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final getLastIndex(Ljava/util/List;)I
|
|
|
|
.locals 1
|
2019-07-31 00:08:31 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
2019-10-09 23:16:36 +00:00
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+TT;>;)I"
|
2019-07-31 00:08:31 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const-string v0, "$this$lastIndex"
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
move-result p0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
add-int/lit8 p0, p0, -0x1
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
return p0
|
2019-07-31 00:08:31 +00:00
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final varargs listOf([Ljava/lang/Object;)Ljava/util/List;
|
2019-07-31 00:08:31 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "elements"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
array-length v0, p0
|
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/g;->asList([Ljava/lang/Object;)Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {}, Lkotlin/a/m;->emptyList()Ljava/util/List;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final varargs listOfNotNull([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "elements"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p0}, Lkotlin/a/g;->filterNotNull([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final varargs mutableListOf([Ljava/lang/Object;)Ljava/util/List;
|
2019-07-31 00:08:31 +00:00
|
|
|
.locals 3
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
2019-07-31 00:08:31 +00:00
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
2019-07-24 11:27:29 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
const-string v0, "elements"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
array-length v0, p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-nez v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
new-instance p0, Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
check-cast p0, Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
return-object p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-07-31 00:08:31 +00:00
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
new-instance v1, Lkotlin/a/f;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, v2}, Lkotlin/a/f;-><init>([Ljava/lang/Object;Z)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final optimizeReadOnlyList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
.locals 2
|
2019-08-14 23:59:34 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
2019-10-09 23:16:36 +00:00
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
2019-08-14 23:59:34 +00:00
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const-string v0, "$this$optimizeReadOnlyList"
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
move-result v0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-09 23:16:36 +00:00
|
|
|
const/4 v0, 0x0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
move-result-object p0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/m;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
move-result-object p0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
return-object p0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
:cond_1
|
|
|
|
invoke-static {}, Lkotlin/a/m;->emptyList()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
2019-08-14 23:59:34 +00:00
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final throwCountOverflow()V
|
|
|
|
.locals 2
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
new-instance v0, Ljava/lang/ArithmeticException;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const-string v1, "Count overflow has happened."
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-direct {v0, v1}, Ljava/lang/ArithmeticException;-><init>(Ljava/lang/String;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final throwIndexOverflow()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/ArithmeticException;
|
|
|
|
|
|
|
|
const-string v1, "Index overflow has happened."
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/ArithmeticException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|