2019-07-31 00:08:31 +00:00
|
|
|
.class public Lkotlin/a/am;
|
|
|
|
.super Lkotlin/a/al;
|
|
|
|
.source "Sets.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final emptySet()Ljava/util/Set;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">()",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
sget-object v0, Lkotlin/a/aa;->bgK:Lkotlin/a/aa;
|
2019-10-09 23:16:36 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Set;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final varargs hashSetOf([Ljava/lang/Object;)Ljava/util/HashSet;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/HashSet<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "elements"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
|
|
|
|
array-length v1, p0
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/a/ad;->mapCapacity(I)I
|
|
|
|
|
|
|
|
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/g;->toCollection([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/HashSet;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final varargs mutableSetOf([Ljava/lang/Object;)Ljava/util/Set;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "elements"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/LinkedHashSet;
|
|
|
|
|
|
|
|
array-length v1, p0
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/a/ad;->mapCapacity(I)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/a/g;->toCollection([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Ljava/util/Set;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final optimizeReadOnlySet(Ljava/util/Set;)Ljava/util/Set;
|
2019-07-31 00:08:31 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"+TT;>;)",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "$this$optimizeReadOnlySet"
|
|
|
|
|
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
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Set;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/ak;->setOf(Ljava/lang/Object;)Ljava/util/Set;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {}, Lkotlin/a/ak;->emptySet()Ljava/util/Set;
|
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
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static final varargs setOf([Ljava/lang/Object;)Ljava/util/Set;
|
2019-07-31 00:08:31 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"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
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p0}, Lkotlin/a/g;->toSet([Ljava/lang/Object;)Ljava/util/Set;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {}, Lkotlin/a/ak;->emptySet()Ljava/util/Set;
|
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
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|