| java.lang.Object com.mobixess.jodb.util.Utils
Utils | public class Utils (Code) | | |
Method Summary | |
public static int | comparePrimitive(Field field, Object obj, ByteBuffer value) | public static void | ensureRegistryExist() | public static void | fatalError(Throwable th) | public static Logger | getLogger(String name) | final public static int | one_at_a_time(byte[] key, int offset, int len) Bob Jenkins' one-at-a-time hash. | public static boolean | primitiveEquals(Field field, Object obj, long value) | public static Object | readPrimitive(String type, DataInput in) | public static boolean | readPrimitiveAndCompare(Object obj, Field field, DataInput in) | public static void | skipPrimitive(Field field, DataInput in) | public static void | writePrimitive(Object obj, Field field, DataOutput out) | public static void | writePrimitiveArray(Object array, Class arrayType, int from, int to, DataOutput out) |
ensureRegistryExist | public static void ensureRegistryExist()(Code) | | |
one_at_a_time | final public static int one_at_a_time(byte[] key, int offset, int len)(Code) | | Bob Jenkins' one-at-a-time hash.
See http://burtleburtle.net/bob/hash/doobs.html
Parameters: key - array containing data to be hashed Parameters: offset - the first element of the array to be hashed Parameters: len - data endpoint (excluded) a 32-bit hash number |
|
|