Package tech.mgl.core.utils
Class MGL_IDUtils
java.lang.Object
tech.mgl.core.utils.MGL_IDUtils
- Author:
- Hotpot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Serializable18位字符数字组合的编码生成static Serializable生成编码 推荐ID之用static voidstatic SerializablenextId()static voidsetDefaultSnowIdProperties(long workerId, long dataCenterId, long startTime) voidtestCode()voidtestUUID()
-
Constructor Details
-
MGL_IDUtils
public MGL_IDUtils()
-
-
Method Details
-
setDefaultSnowIdProperties
public static void setDefaultSnowIdProperties(long workerId, long dataCenterId, long startTime) -
nextId
-
generateStringId
生成编码 推荐ID之用- Returns:
- : Serializable
-
generateCode
18位字符数字组合的编码生成- Returns:
- : Serializable
-
main
-
testCode
- Throws:
IOException
-
testUUID
public void testUUID()
-