.class public Lkotlin/a/o; .super Lkotlin/a/n; .source "Iterables.kt" # direct methods .method public static final a(Ljava/lang/Iterable;I)I .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "+TT;>;I)I" } .end annotation const-string v0, "receiver$0" 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; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "+TT;>;", "Ljava/lang/Iterable<", "+TT;>;)", "Ljava/util/Collection<", "TT;>;" } .end annotation const-string v0, "receiver$0" 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; if-eqz v0, :cond_2 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 const/4 v0, 0x2 if-ge p1, v0, :cond_1 check-cast p0, Ljava/util/Collection; return-object p0 :cond_1 move-object p1, p0 check-cast p1, Ljava/util/Collection; invoke-static {p1}, Lkotlin/a/o;->g(Ljava/util/Collection;)Z move-result v0 if-nez v0, :cond_2 return-object p1 :cond_2 invoke-static {p0}, Lkotlin/a/l;->g(Ljava/lang/Iterable;)Ljava/util/HashSet; move-result-object p0 check-cast p0, Ljava/util/Collection; return-object p0 .end method .method private static final g(Ljava/util/Collection;)Z .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Collection<", "+TT;>;)Z" } .end annotation invoke-interface {p0}, Ljava/util/Collection;->size()I move-result v0 const/4 v1, 0x2 if-le v0, v1, :cond_0 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 .end method