public class Alg extends Object
Constructor and Description |
---|
Alg() |
Modifier and Type | Method and Description |
---|---|
static int |
binarySearch(IntBuffer buff,
int value) |
static int |
binarySearch(IntBuffer buff,
int low,
int high,
int value) |
static <T> int |
binarySearch(List<T> array,
int low,
int high,
T value,
Comparator<T> comparator) |
static <T extends Comparable<? super T>> |
binarySearch(T[] array,
int low,
int high,
T value) |
static int |
decodeIndex(int i) |
static int |
encodeIndex(int i) |
public static final int encodeIndex(int i)
public static final int decodeIndex(int i)
public static int binarySearch(IntBuffer buff, int value)
public static int binarySearch(IntBuffer buff, int low, int high, int value)
public static <T> int binarySearch(List<T> array, int low, int high, T value, Comparator<T> comparator)
public static <T extends Comparable<? super T>> int binarySearch(T[] array, int low, int high, T value)
Licenced under the Apache License, Version 2.0