@CompileStatic class RandomUuidUtils extends Object
Various helper methods for working with random UUID (version 4, variant 2).
Type | Name and description |
---|---|
static Integer |
VALID_UUID_VARIANT |
static Integer |
VALID_UUID_VERSION |
Constructor and description |
---|
RandomUuidUtils() |
Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
checkIfRandomUuid(UUID uuidToCheck) Checks if provided UUID is of version 4 and variant 2, i.e. |
|
static boolean |
checkIfRandomUuidString(String uuidStringToCheck) Checks if provided string represents random UUID (uuid version 4 and uuid variant 2, i.e. |
Checks if provided UUID is of version 4 and variant 2, i.e. 00000000-0000-4000-8000-000000000000
).
Checks if provided string represents random UUID (uuid version 4 and uuid variant 2, i.e. 00000000-0000-4000-8000-000000000000
).
Groovy Documentation