org.openjena.atlas.lib
Class Alg
java.lang.Object
org.openjena.atlas.lib.Alg
public class Alg
- extends Object
Constructor Summary |
Alg()
|
Method Summary |
static int |
binarySearch(IntBuffer buff,
int value)
|
static int |
binarySearch(IntBuffer buff,
int low,
int high,
int value)
|
static
|
binarySearch(List<T> array,
int low,
int high,
T value,
Comparator<T> comparator)
|
static
|
binarySearch(T[] array,
int low,
int high,
T value)
|
static int |
decodeIndex(int i)
|
static int |
encodeIndex(int i)
|
Alg
public Alg()
encodeIndex
public static final int encodeIndex(int i)
decodeIndex
public static final int decodeIndex(int i)
binarySearch
public static int binarySearch(IntBuffer buff,
int value)
binarySearch
public static int binarySearch(IntBuffer buff,
int low,
int high,
int value)
binarySearch
public static <T> int binarySearch(List<T> array,
int low,
int high,
T value,
Comparator<T> comparator)
binarySearch
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