Class Alg


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

      Constructors 
      Constructor Description
      Alg()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int binarySearch​(java.nio.IntBuffer buff, int value)  
      static int binarySearch​(java.nio.IntBuffer buff, int low, int high, int value)  
      static <T> int binarySearch​(java.util.List<T> array, int low, int high, T value, java.util.Comparator<T> comparator)  
      static <T extends java.lang.Comparable<? super T>>
      int
      binarySearch​(T[] array, int low, int high, T value)  
      static int decodeIndex​(int i)  
      static int encodeIndex​(int i)  
      • Methods inherited from class java.lang.Object

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

      • Alg

        public Alg()
    • Method Detail

      • encodeIndex

        public static final int encodeIndex​(int i)
      • decodeIndex

        public static final int decodeIndex​(int i)
      • binarySearch

        public static int binarySearch​(java.nio.IntBuffer buff,
                                       int value)
      • binarySearch

        public static int binarySearch​(java.nio.IntBuffer buff,
                                       int low,
                                       int high,
                                       int value)
      • binarySearch

        public static <T> int binarySearch​(java.util.List<T> array,
                                           int low,
                                           int high,
                                           T value,
                                           java.util.Comparator<T> comparator)
      • binarySearch

        public static <T extends java.lang.Comparable<? super T>> int binarySearch​(T[] array,
                                                                                   int low,
                                                                                   int high,
                                                                                   T value)