2019-07-31 00:08:31 +00:00
|
|
|
.class public Lkotlin/a/p;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Lkotlin/a/o;
|
2019-07-31 00:08:31 +00:00
|
|
|
.source "Iterables.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
2019-07-31 00:08:31 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;I)I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$collectionSizeOrDefault"
|
|
|
|
|
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
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
.method public static final collectionSizeOrNull(Ljava/lang/Iterable;)Ljava/lang/Integer;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/lang/Integer;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$collectionSizeOrNull"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(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}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final convertToSetForSetOperationWith(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/util/Collection;
|
|
|
|
.locals 2
|
2019-07-31 00:08:31 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$convertToSetForSetOperationWith"
|
|
|
|
|
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
|
|
|
|
|
|
|
const-string v0, "source"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
instance-of v0, p0, Ljava/util/Set;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-eqz v0, :cond_3
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
instance-of v0, p1, Ljava/util/Collection;
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const/4 v1, 0x2
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-ge p1, v1, :cond_1
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object p1, p0
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->size()I
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-le v0, v1, :cond_2
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
instance-of v0, p1, Ljava/util/ArrayList;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
const/4 v0, 0x1
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
goto :goto_0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
:cond_2
|
|
|
|
const/4 v0, 0x0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
:goto_0
|
|
|
|
if-nez v0, :cond_3
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
return-object p1
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
:cond_3
|
|
|
|
invoke-static {p0}, Lkotlin/a/m;->toHashSet(Ljava/lang/Iterable;)Ljava/util/HashSet;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
move-result-object p0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
check-cast p0, Ljava/util/Collection;
|
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
|
|
|
.end method
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final flatten(Ljava/lang/Iterable;)Ljava/util/List;
|
2019-08-14 23:59:34 +00:00
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$flatten"
|
|
|
|
|
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
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()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 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/Iterable;
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/Collection;
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {v2, v1}, Lkotlin/a/m;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|