Package com.mchange.lang
Class LongUtils
java.lang.Object
com.mchange.lang.LongUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]byteArrayFromLong(long l) static intfullHashLong(long l) static inthashLong(long l) static longlongFromByteArray(byte[] bytes, int offset) static longlongFromByteArrayLittleEndian(byte[] bytes, int offset) static voidlongIntoByteArray(long l, int offset, byte[] bytes) static voidlongIntoByteArrayLittleEndian(long l, int offset, byte[] bytes)
-
Method Details
-
longFromByteArray
public static long longFromByteArray(byte[] bytes, int offset) -
byteArrayFromLong
public static byte[] byteArrayFromLong(long l) -
longIntoByteArray
public static void longIntoByteArray(long l, int offset, byte[] bytes) -
longFromByteArrayLittleEndian
public static long longFromByteArrayLittleEndian(byte[] bytes, int offset) -
longIntoByteArrayLittleEndian
public static void longIntoByteArrayLittleEndian(long l, int offset, byte[] bytes) -
fullHashLong
public static int fullHashLong(long l) -
hashLong
public static int hashLong(long l)
-