public class CodeStringUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static int |
ID_LENGTH_15 |
private static int |
ID_LENGTH_18 |
private static int |
TEL_LENGTH |
| 构造器和说明 |
|---|
CodeStringUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getNonceStr()
Get a random string
|
static String |
getProtectionIdNo(String IdNo)
china id protection
example: 350101202105201234 to 3501**2021****1234
|
static String |
getProtectionTel(String tel)
china mobile number protection
example: 13912345678 to 139****5678
|
static String |
getRandomNo()
get random string
|
static String |
getUuidNoHyphen(int len)
getUUID no hyphen(-)
|
private static final int TEL_LENGTH
private static final int ID_LENGTH_18
private static final int ID_LENGTH_15
public static String getProtectionTel(String tel)
tel - lengthpublic static String getProtectionIdNo(String IdNo)
IdNo - length 18 or 15public static String getNonceStr()
public static String getUuidNoHyphen(int len)
public static String getRandomNo()
Copyright © 2022. All rights reserved.