public class ObjectIds extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getMachineCode()
获取机器唯一信息
|
static boolean |
isValid(String s)
判断 objectId 是否有效
|
static byte[] |
nextBytes()
获取一个 objectId
|
static String |
nextId()
获取一个 objectId (无下划线)
|
static String |
nextId(boolean symbol)
获取一个 objectId
|
public static boolean isValid(String s)
s
- 字符串public static byte[] nextBytes()
public static String nextId()
public static String nextId(boolean symbol)
symbol
- 是否包含分隔符public static int getMachineCode()
Copyright © 2024. All rights reserved.