java.lang.Object
com.intellij.openapi.util.text.StringHash
-
方法概要
修饰符和类型方法说明static longbuz(CharSequence arg) Calculates hash value of string using buzhash algorithm.static longcalc(byte[] arg) Calculates hash value of byte array buzhash algorithm.static longstatic intmurmur(CharSequence data) static intmurmur(CharSequence data, int seed)
-
方法详细资料
-
calc
-
buz
Calculates hash value of string using buzhash algorithm. See http://www.serve.net/buz/hash.adt/java.008.html for details.- 参数:
arg- string to calculate hash value upon- 返回:
- calculated hash value
-
calc
public static long calc(byte[] arg) Calculates hash value of byte array buzhash algorithm. See http://www.serve.net/buz/hash.adt/java.008.html for details.- 参数:
arg- byte array to calculate hash value upon- 返回:
- calculated hash value
-
murmur
-
murmur
-