Package 

Class ComparatorsKt

    • Method Detail

      • combineComparators

         final static <T extends Any> <ERROR CLASS><T> )>combineComparators(<ERROR CLASS><T> comparators)

        Combines multiple comparators in priority order. The first comparator that returns a non-zero result determines the ordering; subsequent comparators are skipped for that pair. Mirrors combineComparators from stream-video-js.

      • conditional

         final static <T extends Any> <ERROR CLASS><T> )>conditional(Function2<T, T, Boolean> predicate, <ERROR CLASS><T> comparator)

        Returns a comparator that delegates to comparator only when predicate returns true for the pair, otherwise returns 0 (preserving order). Mirrors conditional from stream-video-js.