.class public Lkotlin/b/b; .super Ljava/lang/Object; .source "Comparisons.kt" # direct methods .method public static final synthetic access$compareValuesByImpl(Ljava/lang/Object;Ljava/lang/Object;[Lkotlin/jvm/functions/Function1;)I .locals 5 array-length v0, p2 const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 if-ge v2, v0, :cond_1 aget-object v3, p2, v2 invoke-interface {v3, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v4 check-cast v4, Ljava/lang/Comparable; invoke-interface {v3, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/lang/Comparable; invoke-static {v4, v3}, Lkotlin/b/a;->compareValues(Ljava/lang/Comparable;Ljava/lang/Comparable;)I move-result v3 if-eqz v3, :cond_0 return v3 :cond_0 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_1 return v1 .end method .method public static final varargs compareBy([Lkotlin/jvm/functions/Function1;)Ljava/util/Comparator; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "([", "Lkotlin/jvm/functions/Function1<", "-TT;+", "Ljava/lang/Comparable<", "*>;>;)", "Ljava/util/Comparator<", "TT;>;" } .end annotation const-string v0, "selectors" invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V array-length v0, p0 if-lez v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-eqz v0, :cond_1 new-instance v0, Lkotlin/b/b$a; invoke-direct {v0, p0}, Lkotlin/b/b$a;->([Lkotlin/jvm/functions/Function1;)V check-cast v0, Ljava/util/Comparator; return-object v0 :cond_1 new-instance p0, Ljava/lang/IllegalArgumentException; const-string v0, "Failed requirement." invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public static final compareValues(Ljava/lang/Comparable;Ljava/lang/Comparable;)I .locals 0 .annotation system Ldalvik/annotation/Signature; value = { ";>(TT;TT;)I" } .end annotation if-ne p0, p1, :cond_0 const/4 p0, 0x0 return p0 :cond_0 if-nez p0, :cond_1 const/4 p0, -0x1 return p0 :cond_1 if-nez p1, :cond_2 const/4 p0, 0x1 return p0 :cond_2 invoke-interface {p0, p1}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I move-result p0 return p0 .end method .method public static final naturalOrder()Ljava/util/Comparator; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { ";>()", "Ljava/util/Comparator<", "TT;>;" } .end annotation sget-object v0, Lkotlin/b/e;->bhf:Lkotlin/b/e; if-eqz v0, :cond_0 check-cast v0, Ljava/util/Comparator; return-object v0 :cond_0 new-instance v0, Lkotlin/r; const-string v1, "null cannot be cast to non-null type kotlin.Comparator /* = java.util.Comparator */" invoke-direct {v0, v1}, Lkotlin/r;->(Ljava/lang/String;)V throw v0 .end method .method public static final then(Ljava/util/Comparator;Ljava/util/Comparator;)Ljava/util/Comparator; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Comparator<", "TT;>;", "Ljava/util/Comparator<", "-TT;>;)", "Ljava/util/Comparator<", "TT;>;" } .end annotation const-string v0, "$this$then" invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "comparator" invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V new-instance v0, Lkotlin/b/b$b; invoke-direct {v0, p0, p1}, Lkotlin/b/b$b;->(Ljava/util/Comparator;Ljava/util/Comparator;)V check-cast v0, Ljava/util/Comparator; return-object v0 .end method