Class StringUtil.Hex2B

  • Enclosing class:
    StringUtil

    private static final class StringUtil.Hex2B
    extends java.lang.Object
    Lazily initialized hexadecimal digit to value table, kept separate from StringUtil.Byte2Hex so that decoding (used for instance to parse the machine id) does not pay for the byte to string tables.

    The table stores value + 1: a zero entry means "not a hex digit", so the zero-filled array needs no Arrays.fill pass over its 64 KiB, which is costly when run by the interpreter at startup.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static byte[] TABLE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Hex2B()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TABLE

        static final byte[] TABLE
    • Constructor Detail

      • Hex2B

        private Hex2B()