Class XUuidUtils

java.lang.Object
de.xima.fc.utils.XUuidUtils

public final class XUuidUtils extends Object
Utilities for UUID.
Since:
8.0.4
Author:
XIMA MEDIA GmbH
  • Method Details

    • isUuidString

      public static boolean isUuidString(String value)
      Checks if the given string is a valid UUID.
      Parameters:
      value - The string to check.
      Returns:
      true if the string is a valid UUID, false otherwise.
    • parseUuidOrNull

      public static UUID parseUuidOrNull(String value)
      Parses the string as a UUID, if possible, or returns null if it cannot be parsed.
      Parameters:
      value - Value to parse.
      Returns:
      The UUID represented by the string, or null when the string does not represent a valid UUID.
    • randomUuidString

      public static String randomUuidString()
      Creates a random UUID and returns it as a string.
      Returns:
      A random UUID as a string.