程序包 com.sh.wf.util
类 HashCodeUtil
java.lang.Object
com.sh.wf.util.HashCodeUtil
Description:
Title:首亨软件 - 聚天平台
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intgenerateHashCode(ModuleContext context, String input) static intgenerateHashCode(String input) static intgenerateHashCode(String input, String type) 生成hashcodestatic intgenerateHashCodeSorted(int... inputArray) 多数字生成hashcodestatic intgenerateHashCodeSorted(String... inputArray) 多字符串生成hashcodestatic inthashCodeBySHA(String input) 使用MessageDigest
-
字段详细资料
-
构造器详细资料
-
HashCodeUtil
public HashCodeUtil()
-
-
方法详细资料
-
generateHashCode
-
generateHashCode
-
generateHashCode
生成hashcode- 参数:
input-- 返回:
-
hashCodeBySHA
使用MessageDigest- 参数:
input-- 返回:
-
generateHashCodeSorted
多字符串生成hashcode- 参数:
inputArray-- 返回:
- 注意:字符串顺序不同产生的值是一样的,比如:['u01','u02']与['u02','u01']产生的hashCode是一样的
-
generateHashCodeSorted
public static int generateHashCodeSorted(int... inputArray) 多数字生成hashcode- 参数:
inputArray-- 返回:
- 注意:不同的顺序产生的hashcode一样,比如:[1,2]与[2,1]产生的hashcode是一样的
-