public class ObjectId extends Object
1. Time 时间戳。 2. Machine 所在主机的唯一标识符,一般是机器主机名的散列值。 3. 随机数 4. INC 自增计数器。确保同一秒内产生objectId的唯一性。
参考:...
ObjectId()
static boolean
isValid(String s)
static String
next()
next(boolean withHyphen)
static byte[]
nextBytes()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ObjectId()
public static boolean isValid(String s)
s
public static byte[] nextBytes()
public static String next()
public static String next(boolean withHyphen)
withHyphen
Copyright © 2024. All rights reserved.