Package one.nio.util

Class QuickSelect


  • public class QuickSelect
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      QuickSelect()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long select​(long[] array, int k)  
      static long select​(long[] array, int k, int left, int right)  
      static <T> T select​(T[] array, int k, java.util.Comparator<T> comparator)  
      static <T> T select​(T[] array, int k, java.util.Comparator<T> comparator, int left, int right)  
      • Methods inherited from class java.lang.Object

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

      • QuickSelect

        public QuickSelect()
    • Method Detail

      • select

        public static long select​(long[] array,
                                  int k)
      • select

        public static long select​(long[] array,
                                  int k,
                                  int left,
                                  int right)
      • select

        public static <T> T select​(T[] array,
                                   int k,
                                   java.util.Comparator<T> comparator)
      • select

        public static <T> T select​(T[] array,
                                   int k,
                                   java.util.Comparator<T> comparator,
                                   int left,
                                   int right)