org.openjena.atlas.lib
Class Alg

java.lang.Object
  extended by 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
<T> int
binarySearch(List<T> array, int low, int high, T value, Comparator<T> comparator)
           
static
<T extends 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(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