Class Base16Codec

  • All Implemented Interfaces:
    UuidCodec<String>

    public final class Base16Codec
    extends BaseNCodec
    Codec for base-16 as defined in RFC-4648. It is case insensitive, so it decodes in lower and upper case, but encodes in lower case only. This other codec may be much faster (10x) than doing uuid.toString().replaceAll("-", "")`. See: https://tools.ietf.org/html/rfc4648
    • Field Detail

      • INSTANCE

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

      • Base16Codec

        public Base16Codec()