Companion

Properties

Link copied to clipboard
@get:JvmName(name = "valueOf")
val String.UUID: UUID

通过一个UUID字符串解析为一个 UUID

Functions

Link copied to clipboard
@JvmName(name = "valueOf")
fun from(mostSignificantBits: Long, leastSignificantBits: Long): UUID

通过高低64位数字构建 UUID

Link copied to clipboard
@JvmName(name = "valueOf")
fun fromData(data: ByteArray): UUID

通过长度为 16 的随机字节数组生成 UUID

Link copied to clipboard
fun random(random: Random = Random): UUID

通过随机数生成器得到一个随机的 UUID