Package 

Class UnstableExtensions

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean fuzzyMatches(String $self, String keyword, Character delimiters, Boolean ignoreCase) 判断指定的关键字是否模糊匹配当前字符串。
      • 指定的关键字中的字符是否被当前字符串按顺序全部包含。

      • 如果指定的一组分隔符不为空,则被跳过的子字符串需要以分隔符结束。

      final static <T extends Any, E extends Any> List<T> sortedByList(List<T> $self, List<E> list, Boolean unsortedAtLast, Function1<T, E> selector) 根据指定的列表以及选择器排序当前列表,未匹配的元素将会排在开始或末尾,默认排在末尾。
      final static <T extends Any, E extends Any> List<T> sortedByListDescending(List<T> $self, List<E> list, Boolean unsortedAtLast, Function1<T, E> selector) 根据指定的列表以及选择器倒序排序当前列表,未匹配的元素将会排在开始或末尾,默认排在末尾。
      final static <T extends Any> Unit parallelForEach(Array<out T> $self, Function1<T, Unit> action) 并行遍历数组中的每个元素,执行指定的操作。Performs the given action on each element in parallel.
      final static <T extends Any> Unit parallelForEach(Array<out T> $self, Long timeout, TimeUnit timeUnit, Function1<T, Unit> action) 并行遍历数组中的每个元素,执行指定的操作,带有超时时间。Performs the given action on each element in parallel with timeout.
      final static <T extends Any> Unit parallelForEach(List<T> $self, Function1<T, Unit> action) 并行遍历列表中的每个元素,执行指定的操作。Performs the given action on each element in parallel.
      final static <T extends Any> Unit parallelForEach(List<T> $self, Long timeout, TimeUnit timeUnit, Function1<T, Unit> action) 并行遍历列表中的每个元素,执行指定的操作,带有超时时间。Performs the given action on each element in parallel with timeout.
      final static <K extends Any, V extends Any> Unit parallelForEach(Map<out K, V> $self, Function1<Entry.Map<K, V>, Unit> action) 并行遍历映射中的每个键值对,执行指定的操作。Performs the given action on each entry in parallel.
      final static <K extends Any, V extends Any> Unit parallelForEach(Map<out K, V> $self, Long timeout, TimeUnit timeUnit, Function1<Entry.Map<K, V>, Unit> action) 并行遍历映射中的每个键值对,执行指定的操作,带有超时时间。Performs the given action on each entry in parallel with timeout.
      final static Boolean retry(Long interval, Long timeout, TimeUnit timeUnit, Function0<Boolean> action)
      final static Boolean retry(Long interval, TimeUnit timeUnit, Integer times, Function0<Boolean> action)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • fuzzyMatches

         final static Boolean fuzzyMatches(String $self, String keyword, Character delimiters, Boolean ignoreCase)

        判断指定的关键字是否模糊匹配当前字符串。

        • 指定的关键字中的字符是否被当前字符串按顺序全部包含。

        • 如果指定的一组分隔符不为空,则被跳过的子字符串需要以分隔符结束。

      • sortedByList

         final static <T extends Any, E extends Any> List<T> sortedByList(List<T> $self, List<E> list, Boolean unsortedAtLast, Function1<T, E> selector)

        根据指定的列表以及选择器排序当前列表,未匹配的元素将会排在开始或末尾,默认排在末尾。

      • sortedByListDescending

         final static <T extends Any, E extends Any> List<T> sortedByListDescending(List<T> $self, List<E> list, Boolean unsortedAtLast, Function1<T, E> selector)

        根据指定的列表以及选择器倒序排序当前列表,未匹配的元素将会排在开始或末尾,默认排在末尾。

      • parallelForEach

         final static <T extends Any> Unit parallelForEach(Array<out T> $self, Function1<T, Unit> action)

        并行遍历数组中的每个元素,执行指定的操作。

        Performs the given action on each element in parallel.

      • parallelForEach

         final static <T extends Any> Unit parallelForEach(Array<out T> $self, Long timeout, TimeUnit timeUnit, Function1<T, Unit> action)

        并行遍历数组中的每个元素,执行指定的操作,带有超时时间。

        Performs the given action on each element in parallel with timeout.

      • parallelForEach

         final static <T extends Any> Unit parallelForEach(List<T> $self, Function1<T, Unit> action)

        并行遍历列表中的每个元素,执行指定的操作。

        Performs the given action on each element in parallel.

      • parallelForEach

         final static <T extends Any> Unit parallelForEach(List<T> $self, Long timeout, TimeUnit timeUnit, Function1<T, Unit> action)

        并行遍历列表中的每个元素,执行指定的操作,带有超时时间。

        Performs the given action on each element in parallel with timeout.

      • parallelForEach

         final static <K extends Any, V extends Any> Unit parallelForEach(Map<out K, V> $self, Function1<Entry.Map<K, V>, Unit> action)

        并行遍历映射中的每个键值对,执行指定的操作。

        Performs the given action on each entry in parallel.

      • parallelForEach

         final static <K extends Any, V extends Any> Unit parallelForEach(Map<out K, V> $self, Long timeout, TimeUnit timeUnit, Function1<Entry.Map<K, V>, Unit> action)

        并行遍历映射中的每个键值对,执行指定的操作,带有超时时间。

        Performs the given action on each entry in parallel with timeout.