Class Base32.Builder

All Implemented Interfaces:
Supplier<Base32>
Enclosing class:
Base32

public static class Base32.Builder extends BaseNCodec.AbstractBuilder<Base32,Base32.Builder>
Builds Base32 instances.
Since:
1.17.0
  • Constructor Details

    • Builder

      public Builder()
      Constructs a new instance.
  • Method Details

    • get

      public Base32 get()
    • setHexDecodeTable

      public Base32.Builder setHexDecodeTable(boolean useHex)
      Sets the decode table to use Base32 hexadecimal if true, otherwise use the Base32 alphabet.

      This overrides a value previously set with BaseNCodec.AbstractBuilder.setEncodeTable(byte...).

      Parameters:
      useHex - use Base32 hexadecimal if true, otherwise use the Base32 alphabet.
      Returns:
      this instance.
      Since:
      1.18.0
    • setHexEncodeTable

      public Base32.Builder setHexEncodeTable(boolean useHex)
      Sets the encode table to use Base32 hexadecimal if true, otherwise use the Base32 alphabet.

      This overrides a value previously set with BaseNCodec.AbstractBuilder.setEncodeTable(byte...).

      Parameters:
      useHex - use Base32 hexadecimal if true, otherwise use the Base32 alphabet.
      Returns:
      this instance.
      Since:
      1.18.0