Class RandomGUID


  • public class RandomGUID
    extends Object
    • Method Detail

      • toByteArray

        public static final byte[] toByteArray​(String uid)
        Returns a byte array for the given uuid or guid.
        Parameters:
        uid - unique id
        Returns:
        array of bytes containing the id
      • fromByteArray

        public static String fromByteArray​(byte[] ba)
        Returns a uuid / guid for a given byte array.
        Parameters:
        ba - array of bytes containing the id
        Returns:
        id
      • getPrettyFormatted

        public static String getPrettyFormatted​(String str)
        Returns a nice neat formatted string.
        Parameters:
        str - unformatted string
        Returns:
        formatted string
      • create

        public static String create()