.class Lkotlin/collections/SetsKt___SetsKt; .super Lkotlin/collections/SetsKt__SetsKt; .source "_Sets.kt" # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\n_Sets.kt\nKotlin\n*S Kotlin\n*F\n+ 1 _Sets.kt\nkotlin/collections/SetsKt___SetsKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,139:1\n857#2,2:140\n847#2,2:142\n1#3:144\n*S KotlinDebug\n*F\n+ 1 _Sets.kt\nkotlin/collections/SetsKt___SetsKt\n*L\n28#1:140,2\n52#1:142,2\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\u001c\n\u0000\n\u0002\u0010\"\n\u0002\u0008\u0004\n\u0002\u0010\u0011\n\u0000\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u001a,\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0086\u0002\u00a2\u0006\u0002\u0010\u0004\u001a4\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u000e\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u0002H\u00020\u0006H\u0086\u0002\u00a2\u0006\u0002\u0010\u0007\u001a-\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u000c\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0008H\u0086\u0002\u001a-\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u000c\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\tH\u0086\u0002\u001a,\u0010\n\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0087\u0008\u00a2\u0006\u0002\u0010\u0004\u001a,\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0086\u0002\u00a2\u0006\u0002\u0010\u0004\u001a4\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u000e\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u0002H\u00020\u0006H\u0086\u0002\u00a2\u0006\u0002\u0010\u0007\u001a-\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u000c\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0008H\u0086\u0002\u001a-\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u000c\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\tH\u0086\u0002\u001a,\u0010\u000c\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0087\u0008\u00a2\u0006\u0002\u0010\u0004\u00a8\u0006\r" } d2 = { "minus", "", "T", "element", "(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set;", "elements", "", "(Ljava/util/Set;[Ljava/lang/Object;)Ljava/util/Set;", "", "Lkotlin/sequences/Sequence;", "minusElement", "plus", "plusElement", "kotlin-stdlib" } k = 0x5 mv = { 0x1, 0x9, 0x0 } xi = 0x31 xs = "kotlin/collections/SetsKt" .end annotation # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Lkotlin/collections/SetsKt__SetsKt;->()V return-void .end method .method public static final minus(Ljava/util/Set;Ljava/lang/Iterable;)Ljava/util/Set; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;", "Ljava/lang/Iterable<", "+TT;>;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "elements" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 48 invoke-static {p1}, Lkotlin/collections/CollectionsKt;->convertToListIfNotCollection(Ljava/lang/Iterable;)Ljava/util/Collection; move-result-object p1 .line 49 invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 .line 50 check-cast p0, Ljava/lang/Iterable; invoke-static {p0}, Lkotlin/collections/CollectionsKt;->toSet(Ljava/lang/Iterable;)Ljava/util/Set; move-result-object p0 return-object p0 .line 51 :cond_0 instance-of v0, p1, Ljava/util/Set; if-eqz v0, :cond_3 .line 52 check-cast p0, Ljava/lang/Iterable; new-instance v0, Ljava/util/LinkedHashSet; invoke-direct {v0}, Ljava/util/LinkedHashSet;->()V check-cast v0, Ljava/util/Collection; .line 142 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 .line 52 invoke-interface {p1, v1}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_1 .line 142 invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_0 .line 143 :cond_2 check-cast v0, Ljava/util/Set; return-object v0 .line 53 :cond_3 new-instance v0, Ljava/util/LinkedHashSet; check-cast p0, Ljava/util/Collection; invoke-direct {v0, p0}, Ljava/util/LinkedHashSet;->(Ljava/util/Collection;)V .line 54 invoke-virtual {v0, p1}, Ljava/util/LinkedHashSet;->removeAll(Ljava/util/Collection;)Z .line 55 check-cast v0, Ljava/util/Set; return-object v0 .end method .method public static final minus(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set; .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;TT;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 26 new-instance v0, Ljava/util/LinkedHashSet; invoke-interface {p0}, Ljava/util/Set;->size()I move-result v1 invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I move-result v1 invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;->(I)V .line 28 check-cast p0, Ljava/lang/Iterable; .line 140 invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object p0 const/4 v1, 0x0 move v2, v1 :cond_0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_2 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 const/4 v4, 0x1 if-nez v2, :cond_1 .line 28 invoke-static {v3, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_1 move v2, v4 move v4, v1 :cond_1 if-eqz v4, :cond_0 .line 140 move-object v4, v0 check-cast v4, Ljava/util/Collection; invoke-interface {v4, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_0 .line 141 :cond_2 check-cast v0, Ljava/util/Collection; check-cast v0, Ljava/util/Set; return-object v0 .end method .method public static final minus(Ljava/util/Set;Lkotlin/sequences/Sequence;)Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;", "Lkotlin/sequences/Sequence<", "+TT;>;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "elements" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 64 new-instance v0, Ljava/util/LinkedHashSet; check-cast p0, Ljava/util/Collection; invoke-direct {v0, p0}, Ljava/util/LinkedHashSet;->(Ljava/util/Collection;)V .line 65 move-object p0, v0 check-cast p0, Ljava/util/Collection; invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt;->removeAll(Ljava/util/Collection;Lkotlin/sequences/Sequence;)Z .line 66 check-cast v0, Ljava/util/Set; return-object v0 .end method .method public static final minus(Ljava/util/Set;[Ljava/lang/Object;)Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;[TT;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "elements" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 37 new-instance v0, Ljava/util/LinkedHashSet; check-cast p0, Ljava/util/Collection; invoke-direct {v0, p0}, Ljava/util/LinkedHashSet;->(Ljava/util/Collection;)V .line 38 move-object p0, v0 check-cast p0, Ljava/util/Collection; invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt;->removeAll(Ljava/util/Collection;[Ljava/lang/Object;)Z .line 39 check-cast v0, Ljava/util/Set; return-object v0 .end method .method private static final minusElement(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;TT;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 76 invoke-static {p0, p1}, Lkotlin/collections/SetsKt;->minus(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set; move-result-object p0 return-object p0 .end method .method public static final plus(Ljava/util/Set;Ljava/lang/Iterable;)Ljava/util/Set; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;", "Ljava/lang/Iterable<", "+TT;>;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "elements" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 110 invoke-static {p1}, Lkotlin/collections/CollectionsKt;->collectionSizeOrNull(Ljava/lang/Iterable;)Ljava/lang/Integer; move-result-object v0 if-eqz v0, :cond_0 check-cast v0, Ljava/lang/Number; invoke-virtual {v0}, Ljava/lang/Number;->intValue()I move-result v0 invoke-interface {p0}, Ljava/util/Set;->size()I move-result v1 add-int/2addr v1, v0 goto :goto_0 :cond_0 invoke-interface {p0}, Ljava/util/Set;->size()I move-result v0 mul-int/lit8 v1, v0, 0x2 :goto_0 invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I move-result v0 new-instance v1, Ljava/util/LinkedHashSet; invoke-direct {v1, v0}, Ljava/util/LinkedHashSet;->(I)V .line 111 check-cast p0, Ljava/util/Collection; invoke-virtual {v1, p0}, Ljava/util/LinkedHashSet;->addAll(Ljava/util/Collection;)Z .line 112 move-object p0, v1 check-cast p0, Ljava/util/Collection; invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z .line 113 check-cast v1, Ljava/util/Set; return-object v1 .end method .method public static final plus(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;TT;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 85 new-instance v0, Ljava/util/LinkedHashSet; invoke-interface {p0}, Ljava/util/Set;->size()I move-result v1 add-int/lit8 v1, v1, 0x1 invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I move-result v1 invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;->(I)V .line 86 check-cast p0, Ljava/util/Collection; invoke-virtual {v0, p0}, Ljava/util/LinkedHashSet;->addAll(Ljava/util/Collection;)Z .line 87 invoke-virtual {v0, p1}, Ljava/util/LinkedHashSet;->add(Ljava/lang/Object;)Z .line 88 check-cast v0, Ljava/util/Set; return-object v0 .end method .method public static final plus(Ljava/util/Set;Lkotlin/sequences/Sequence;)Ljava/util/Set; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;", "Lkotlin/sequences/Sequence<", "+TT;>;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "elements" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 123 new-instance v0, Ljava/util/LinkedHashSet; invoke-interface {p0}, Ljava/util/Set;->size()I move-result v1 mul-int/lit8 v1, v1, 0x2 invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I move-result v1 invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;->(I)V .line 124 check-cast p0, Ljava/util/Collection; invoke-virtual {v0, p0}, Ljava/util/LinkedHashSet;->addAll(Ljava/util/Collection;)Z .line 125 move-object p0, v0 check-cast p0, Ljava/util/Collection; invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt;->addAll(Ljava/util/Collection;Lkotlin/sequences/Sequence;)Z .line 126 check-cast v0, Ljava/util/Set; return-object v0 .end method .method public static final plus(Ljava/util/Set;[Ljava/lang/Object;)Ljava/util/Set; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;[TT;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "elements" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 98 new-instance v0, Ljava/util/LinkedHashSet; invoke-interface {p0}, Ljava/util/Set;->size()I move-result v1 array-length v2, p1 add-int/2addr v1, v2 invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I move-result v1 invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;->(I)V .line 99 check-cast p0, Ljava/util/Collection; invoke-virtual {v0, p0}, Ljava/util/LinkedHashSet;->addAll(Ljava/util/Collection;)Z .line 100 move-object p0, v0 check-cast p0, Ljava/util/Collection; invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z .line 101 check-cast v0, Ljava/util/Set; return-object v0 .end method .method private static final plusElement(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+TT;>;TT;)", "Ljava/util/Set<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 136 invoke-static {p0, p1}, Lkotlin/collections/SetsKt;->plus(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set; move-result-object p0 return-object p0 .end method