Package org.apache.jena.atlas.lib
Class Alg
- java.lang.Object
-
- org.apache.jena.atlas.lib.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 intbinarySearch(java.nio.IntBuffer buff, int value)static intbinarySearch(java.nio.IntBuffer buff, int low, int high, int value)static <T> intbinarySearch(java.util.List<T> array, int low, int high, T value, java.util.Comparator<T> comparator)static <T extends java.lang.Comparable<? super T>>
intbinarySearch(T[] array, int low, int high, T value)static intdecodeIndex(int i)static intencodeIndex(int i)
-
-
-
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)
-
-