Class UuidBuilder (1.12.22)

public final class UuidBuilder

Utilities for generating and converting 128-bit UUIDs.

Inheritance

java.lang.Object > UuidBuilder

Static Methods

generate()

public static UUID generate()

Generates a random UUID.

Returns
TypeDescription
UUID

toByteString(UUID uuid)

public static ByteString toByteString(UUID uuid)

Converts a UUID to a ByteString.

Parameter
NameDescription
uuidUUID
Returns
TypeDescription
ByteString