Class CrockfordUuidEncoder

java.lang.Object
io.jmix.ui.navigation.CrockfordUuidEncoder

public final class CrockfordUuidEncoder extends Object
Crockford Base32 encoding implementation that is used to serialize UUID values.

Crockford Base32 encoding

See Also:
  • Field Details

    • INVALID_CHAR

      protected static final int INVALID_CHAR
      See Also:
    • BASE

      protected static final int BASE
      See Also:
    • CROCKFORD_CHARSET

      protected static final String CROCKFORD_CHARSET
      See Also:
    • ENCODE_TABLE

      protected static final char[] ENCODE_TABLE
    • DECODE_TABLE

      protected static final int[] DECODE_TABLE
    • STRING_UUID_SPLIT_REGEX

      protected static final String STRING_UUID_SPLIT_REGEX
      See Also:
    • STRING_UUID_SPLIT_PATTERN

      protected static final Pattern STRING_UUID_SPLIT_PATTERN
  • Method Details

    • encode

      public static String encode(UUID uuid)
      Performs Base32 encoding for the given uuid.
      Parameters:
      uuid - UUID
      Returns:
      Base32 encoded string
    • decode

      public static UUID decode(String encoded)
      Performs Base32 decoding for the given encoded string.
      Parameters:
      encoded - encoded string
      Returns:
      decoded UUID
    • parseUuid

      protected static UUID parseUuid(String stringUuid)
    • correct

      protected static String correct(String uuid)
    • buildEncodeTable

      protected static void buildEncodeTable()
    • buildDecodeTable

      protected static void buildDecodeTable()