2019-02-04 20:08:30 +00:00
|
|
|
.class public Lkotlin/a/o;
|
|
|
|
.super Lkotlin/a/n;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "Iterables.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static final a(Ljava/lang/Iterable;I)I
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"+TT;>;I)I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$collectionSizeOrDefault"
|
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}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final a(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/util/Collection;
|
2019-02-04 20:12:03 +00:00
|
|
|
.locals 1
|
2019-02-04 20:08:30 +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
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "$this$convertToSetForSetOperationWith"
|
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, "source"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
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-02-04 20:12:03 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
instance-of v0, p1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
if-ge p1, v0, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object p1, p0
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
invoke-static {p1}, Lkotlin/a/o;->g(Ljava/util/Collection;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
if-nez v0, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
return-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
:cond_2
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/l;->l(Ljava/lang/Iterable;)Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
check-cast p0, Ljava/util/Collection;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
return-object p0
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
.method private static final g(Ljava/util/Collection;)Z
|
2019-02-04 20:12:03 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"+TT;>;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
move-result v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
const/4 v1, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
if-le v0, v1, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:12:03 +00:00
|
|
|
instance-of p0, p0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|