从 MostSignificantBits 和 LeastSignificantBits 创建 UUID

create UUID from MostSignificantBits and LeastSignificantBits

正如我们所知,我们可以使用方法 getMostSignificantBits() 获取 UUID 的 MostSignificantBits,使用方法 getLeastSignificantBits() 获取 UUID 的 LeastSignificantBits。但是,如果已知 MostSignificantBits 和 LeastSignificantBits,如何获取原始 UUID(逆向过程)?

您可以使用 UUID 构造器

UUID(最长的SigBits,最短的SigBits)

它使用指定的数据构造一个新的 UUID。