baobab.util
Class ByteSetUtil

java.lang.Object
  extended by baobab.util.ByteSetUtil

public class ByteSetUtil
extends java.lang.Object


Constructor Summary
ByteSetUtil()
           
 
Method Summary
static byte[] bitListToBytes(BitList element)
           
static int[] bitListToInts(BitList element)
           
static BitList bytesToBitList(byte[] elementValues, int nbits)
           
static byte[] condense(byte[] element)
           
static int[] condense(int[] element)
           
static byte[] expand(byte[] condensed)
           
static BitList intsToBitList(int[] elementValues, int nbits)
           
static byte[] sortBytes(byte[] set)
           
static int[] sortIntegers(int[] set)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteSetUtil

public ByteSetUtil()
Method Detail

bitListToBytes

public static byte[] bitListToBytes(BitList element)

bitListToInts

public static int[] bitListToInts(BitList element)

bytesToBitList

public static BitList bytesToBitList(byte[] elementValues,
                                     int nbits)

intsToBitList

public static BitList intsToBitList(int[] elementValues,
                                    int nbits)

sortBytes

public static byte[] sortBytes(byte[] set)

sortIntegers

public static int[] sortIntegers(int[] set)

condense

public static byte[] condense(byte[] element)

condense

public static int[] condense(int[] element)

expand

public static byte[] expand(byte[] condensed)