Class Base16UCodec

  • All Implemented Interfaces:
    UuidCodec<String>

    public final class Base16UCodec
    extends BaseNCodec
    Codec for UPPER CASE base-16 as defined in RFC-4648. It is case insensitive, so it decodes from lower and upper case, but encodes to UPPER CASE only. It can be up to 22x faster than doing uuid.toString().replaceAll("-", "")`. See: https://tools.ietf.org/html/rfc4648
    • Field Detail

      • INSTANCE

        public static final Base16UCodec INSTANCE
        A shared immutable instance.
    • Constructor Detail

      • Base16UCodec

        public Base16UCodec()