类 CodeStringUtils
java.lang.Object
cloud.opencode.base.util.CodeStringUtils
- 版本:
- v1.0.0
- 作者:
- Jon So, e-mail: ijonso123@gmail.com url: Jon's blog url: project github
-
字段概要
字段修饰符和类型字段说明private static final intprivate static final intprivate static final int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringGet a random stringstatic StringgetProtectionIdNo(String IdNo) china id protection example: 350101202105201234 to 3501**2021****1234static StringgetProtectionTel(String tel) china mobile number protection example: 13912345678 to 139****5678static Stringget random stringstatic StringgetUuidNoHyphen(int len) getUUID no hyphen(-)
-
字段详细资料
-
TEL_LENGTH
private static final int TEL_LENGTH- 另请参阅:
-
ID_LENGTH_18
private static final int ID_LENGTH_18- 另请参阅:
-
ID_LENGTH_15
private static final int ID_LENGTH_15- 另请参阅:
-
-
构造器详细资料
-
CodeStringUtils
private CodeStringUtils()
-
-
方法详细资料
-
getProtectionTel
china mobile number protection example: 13912345678 to 139****5678- 参数:
tel- length- 返回:
- the format string
-
getProtectionIdNo
china id protection example: 350101202105201234 to 3501**2021****1234- 参数:
IdNo- length 18 or 15- 返回:
- the format string
-
getNonceStr
Get a random string- 返回:
- String
-
getUuidNoHyphen
getUUID no hyphen(-)- 返回:
- string
-
getRandomNo
get random string- 返回:
- String
-