Class XUuidUtils
java.lang.Object
de.xima.fc.utils.XUuidUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisUuidString(String value) Checks if the given string is a valid UUID.static UUIDparseUuidOrNull(String value) Parses the string as aUUID, if possible, or returns null if it cannot be parsed.static StringCreates a random UUID and returns it as a string.
-
Method Details
-
isUuidString
Checks if the given string is a valid UUID.- Parameters:
value- The string to check.- Returns:
trueif the string is a valid UUID,falseotherwise.
-
parseUuidOrNull
-
randomUuidString
Creates a random UUID and returns it as a string.- Returns:
- A random UUID as a string.
-