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 from lower and upper case, but encodes to lower 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 Base16Codec INSTANCE
        A shared immutable instance.
    • Constructor Detail

      • Base16Codec

        public Base16Codec()