| Constructor and Description |
|---|
ObjectId() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(String s)
给定的字符串是否为有效的ObjectId
|
static String |
next()
获取一个objectId【没有下划线】。
|
static String |
next(boolean withHyphen)
获取一个objectId
|
static byte[] |
nextBytes()
获取一个objectId的bytes表现形式
|
public static boolean isValid(String s)
s - 字符串public static byte[] nextBytes()
public static String next()
public static String next(boolean withHyphen)
withHyphen - 是否包含分隔符Copyright © 2025. All rights reserved.