Package com.bytedesk.core.utils
Class Utils
java.lang.Object
com.bytedesk.core.utils.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
getUid()
带有时间戳的uuid UUID.randomUUID().toString()长度为36,我们去掉'-'之后,截取前半段static boolean
isTestEmail
(String email) static boolean
isTestMobile
(String mobile) for teststatic String
uuid()
UUID
-
Constructor Details
-
Utils
private Utils()
-
-
Method Details
-
uuid
UUID- Returns:
- UUID
-
getUid
带有时间戳的uuid UUID.randomUUID().toString()长度为36,我们去掉'-'之后,截取前半段- Returns:
- uuid
-
formatUid
-
isTestMobile
for test- Parameters:
mobile
-- Returns:
-
isTestEmail
-
getRandomCode
- Returns:
-