Package one.nio.util
Class Hash
- java.lang.Object
-
- one.nio.util.Hash
-
public class Hash extends Object
-
-
Constructor Summary
Constructors Constructor Description Hash()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intmurmur3(byte[] array, int start, int length)static intmurmur3(Object obj, long offset, int count)static intmurmur3(String s)static intmurmur3_final(int state, int length)static intmurmur3_step(int state, int value)static longtwang_mix(long key)static longtwang_unmix(long key)static intxxhash(byte[] array, int start, int length)static intxxhash(Object obj, long offset, int count)
-
-
-
Method Detail
-
twang_mix
public static long twang_mix(long key)
-
twang_unmix
public static long twang_unmix(long key)
-
murmur3_step
public static int murmur3_step(int state, int value)
-
murmur3_final
public static int murmur3_final(int state, int length)
-
murmur3
public static int murmur3(String s)
-
murmur3
public static int murmur3(Object obj, long offset, int count)
-
murmur3
public static int murmur3(byte[] array, int start, int length)
-
xxhash
public static int xxhash(Object obj, long offset, int count)
-
xxhash
public static int xxhash(byte[] array, int start, int length)
-
-