Interface UUIDGenerator


  • public interface UUIDGenerator
    Interface for the generation of UUIDs
    • Method Detail

      • newUuid

        String newUuid()
        Creates a brand new UUID
        Returns:
        A 36 character length string
      • newUuidBase64

        String newUuidBase64()
        Creates a brand new UUID in base-64 and without characters forbidden in URLs (plus sign, equal, slash and ampersand)
        Returns:
        A 22 character length, base-64 and URL-safe string
      • uuidToBase64

        String uuidToBase64​(String str)
        Converts an un-encoded 36 character UUID to a base-64 and URL-safe string.
      • uuidFromBase64

        String uuidFromBase64​(String str)
        Converts back a base-64 and URL-safe string to its original 36 character representation.