test_class.declarator: logger = LoggerFactory.getLogger(HexUtilTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(HexUtilTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-util/src/test/java/com/cloudhopper/commons/util/HexUtilTest.java
test_class.identifier: HexUtilTest
test_case.body: @Test
      public void hexCharToIntValue() throws Exception {
          Assert.assertEquals(0, HexUtil.hexCharToIntValue('0'));
          Assert.assertEquals(1, HexUtil.hexCharToIntValue('1'));
          Assert.assertEquals(2, HexUtil.hexCharToIntValue('2'));
          Assert.assertEquals(3, HexUtil.hexCharToIntValue('3'));
          Assert.assertEquals(4, HexUtil.hexCharToIntValue('4'));
          Assert.assertEquals(5, HexUtil.hexCharToIntValue('5'));
          Assert.assertEquals(6, HexUtil.hexCharToIntValue('6'));
          Assert.assertEquals(7, HexUtil.hexCharToIntValue('7'));
          Assert.assertEquals(8, HexUtil.hexCharToIntValue('8'));
          Assert.assertEquals(9, HexUtil.hexCharToIntValue('9'));
          Assert.assertEquals(10, HexUtil.hexCharToIntValue('A'));
          Assert.assertEquals(11, HexUtil.hexCharToIntValue('B'));
          Assert.assertEquals(12, HexUtil.hexCharToIntValue('C'));
          Assert.assertEquals(13, HexUtil.hexCharToIntValue('D'));
          Assert.assertEquals(14, HexUtil.hexCharToIntValue('E'));
          Assert.assertEquals(15, HexUtil.hexCharToIntValue('F'));
          Assert.assertEquals(10, HexUtil.hexCharToIntValue('a'));
          Assert.assertEquals(11, HexUtil.hexCharToIntValue('b'));
          Assert.assertEquals(12, HexUtil.hexCharToIntValue('c'));
          Assert.assertEquals(13, HexUtil.hexCharToIntValue('d'));
          Assert.assertEquals(14, HexUtil.hexCharToIntValue('e'));
          Assert.assertEquals(15, HexUtil.hexCharToIntValue('f'));
  
          try {
              Assert.assertEquals(15, HexUtil.hexCharToIntValue('g'));
              Assert.fail();
          } catch (IllegalArgumentException e) {
              // correct behavior
          }
      }
test_case.class_method_signature: HexUtilTest.hexCharToIntValue()
test_case.full_signature: @Test public void hexCharToIntValue()
test_case.identifier: hexCharToIntValue
test_case.invocations: assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue assertEquals hexCharToIntValue fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void hexCharToIntValue()
focal_class.declarator: HEX_TABLE = {
          '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
      }
focal_class.modifier: public static
focal_class.original_string: public static char[] HEX_TABLE = {
          '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
      };
focal_class.type: char[]
focal_class.var_name: HEX_TABLE
focal_class.file: ch-commons-util/src/main/java/com/cloudhopper/commons/util/HexUtil.java
focal_class.identifier: HexUtil
focal_class.class_method_signature: HexUtil.toHexString(byte[] bytes)
focal_class.full_signature: public static String toHexString(byte[] bytes)
focal_class.identifier: toHexString
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes)
focal_class.return: String
focal_class.signature: String toHexString(byte[] bytes)
focal_class.class_method_signature: HexUtil.toHexString(byte[] bytes, int offset, int length)
focal_class.full_signature: public static String toHexString(byte[] bytes, int offset, int length)
focal_class.identifier: toHexString
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes, int offset, int length)
focal_class.return: String
focal_class.signature: String toHexString(byte[] bytes, int offset, int length)
focal_class.class_method_signature: HexUtil.appendHexString(StringBuilder buffer, byte[] bytes)
focal_class.full_signature: public static void appendHexString(StringBuilder buffer, byte[] bytes)
focal_class.identifier: appendHexString
focal_class.modifiers: public static
focal_class.parameters: (StringBuilder buffer, byte[] bytes)
focal_class.return: void
focal_class.signature: void appendHexString(StringBuilder buffer, byte[] bytes)
focal_class.class_method_signature: HexUtil.appendHexString(StringBuilder buffer, byte[] bytes, int offset, int length)
focal_class.full_signature: static public void appendHexString(StringBuilder buffer, byte[] bytes, int offset, int length)
focal_class.identifier: appendHexString
focal_class.modifiers: static public
focal_class.parameters: (StringBuilder buffer, byte[] bytes, int offset, int length)
focal_class.return: void
focal_class.signature: void appendHexString(StringBuilder buffer, byte[] bytes, int offset, int length)
focal_class.class_method_signature: HexUtil.toHexString(byte value)
focal_class.full_signature: static public String toHexString(byte value)
focal_class.identifier: toHexString
focal_class.modifiers: static public
focal_class.parameters: (byte value)
focal_class.return: String
focal_class.signature: String toHexString(byte value)
focal_class.class_method_signature: HexUtil.appendHexString(StringBuilder buffer, byte value)
focal_class.full_signature: static public void appendHexString(StringBuilder buffer, byte value)
focal_class.identifier: appendHexString
focal_class.modifiers: static public
focal_class.parameters: (StringBuilder buffer, byte value)
focal_class.return: void
focal_class.signature: void appendHexString(StringBuilder buffer, byte value)
focal_class.class_method_signature: HexUtil.toHexString(short value)
focal_class.full_signature: static public String toHexString(short value)
focal_class.identifier: toHexString
focal_class.modifiers: static public
focal_class.parameters: (short value)
focal_class.return: String
focal_class.signature: String toHexString(short value)
focal_class.class_method_signature: HexUtil.appendHexString(StringBuilder buffer, short value)
focal_class.full_signature: static public void appendHexString(StringBuilder buffer, short value)
focal_class.identifier: appendHexString
focal_class.modifiers: static public
focal_class.parameters: (StringBuilder buffer, short value)
focal_class.return: void
focal_class.signature: void appendHexString(StringBuilder buffer, short value)
focal_class.class_method_signature: HexUtil.toHexString(int value)
focal_class.full_signature: static public String toHexString(int value)
focal_class.identifier: toHexString
focal_class.modifiers: static public
focal_class.parameters: (int value)
focal_class.return: String
focal_class.signature: String toHexString(int value)
focal_class.class_method_signature: HexUtil.appendHexString(StringBuilder buffer, int value)
focal_class.full_signature: static public void appendHexString(StringBuilder buffer, int value)
focal_class.identifier: appendHexString
focal_class.modifiers: static public
focal_class.parameters: (StringBuilder buffer, int value)
focal_class.return: void
focal_class.signature: void appendHexString(StringBuilder buffer, int value)
focal_class.class_method_signature: HexUtil.toHexString(long value)
focal_class.full_signature: static public String toHexString(long value)
focal_class.identifier: toHexString
focal_class.modifiers: static public
focal_class.parameters: (long value)
focal_class.return: String
focal_class.signature: String toHexString(long value)
focal_class.class_method_signature: HexUtil.appendHexString(StringBuilder buffer, long value)
focal_class.full_signature: static public void appendHexString(StringBuilder buffer, long value)
focal_class.identifier: appendHexString
focal_class.modifiers: static public
focal_class.parameters: (StringBuilder buffer, long value)
focal_class.return: void
focal_class.signature: void appendHexString(StringBuilder buffer, long value)
focal_class.class_method_signature: HexUtil.assertNotNull(StringBuilder buffer)
focal_class.full_signature: static private void assertNotNull(StringBuilder buffer)
focal_class.identifier: assertNotNull
focal_class.modifiers: static private
focal_class.parameters: (StringBuilder buffer)
focal_class.return: void
focal_class.signature: void assertNotNull(StringBuilder buffer)
focal_class.class_method_signature: HexUtil.assertOffsetLengthValid(int offset, int length, int arrayLength)
focal_class.full_signature: static private void assertOffsetLengthValid(int offset, int length, int arrayLength)
focal_class.identifier: assertOffsetLengthValid
focal_class.modifiers: static private
focal_class.parameters: (int offset, int length, int arrayLength)
focal_class.return: void
focal_class.signature: void assertOffsetLengthValid(int offset, int length, int arrayLength)
focal_class.class_method_signature: HexUtil.hexCharToIntValue(char c)
focal_class.full_signature: static public int hexCharToIntValue(char c)
focal_class.identifier: hexCharToIntValue
focal_class.modifiers: static public
focal_class.parameters: (char c)
focal_class.return: int
focal_class.signature: int hexCharToIntValue(char c)
focal_class.class_method_signature: HexUtil.toByteArray(CharSequence hexString)
focal_class.full_signature: public static byte[] toByteArray(CharSequence hexString)
focal_class.identifier: toByteArray
focal_class.modifiers: public static
focal_class.parameters: (CharSequence hexString)
focal_class.return: byte[]
focal_class.signature: byte[] toByteArray(CharSequence hexString)
focal_class.class_method_signature: HexUtil.toByteArray(CharSequence hexString, int offset, int length)
focal_class.full_signature: public static byte[] toByteArray(CharSequence hexString, int offset, int length)
focal_class.identifier: toByteArray
focal_class.modifiers: public static
focal_class.parameters: (CharSequence hexString, int offset, int length)
focal_class.return: byte[]
focal_class.signature: byte[] toByteArray(CharSequence hexString, int offset, int length)
focal_method.body: static public int hexCharToIntValue(char c) {
          if (c == '0') {
              return 0;
          } else if (c == '1') {
              return 1;
          } else if (c == '2') {
              return 2;
          } else if (c == '3') {
              return 3;
          } else if (c == '4') {
              return 4;
          } else if (c == '5') {
              return 5;
          } else if (c == '6') {
              return 6;
          } else if (c == '7') {
              return 7;
          } else if (c == '8') {
              return 8;
          } else if (c == '9') {
              return 9;
          } else if (c == 'A' || c == 'a') {
              return 10;
          } else if (c == 'B' || c == 'b') {
              return 11;
          } else if (c == 'C' || c == 'c') {
              return 12;
          } else if (c == 'D' || c == 'd') {
              return 13;
          } else if (c == 'E' || c == 'e') {
              return 14;
          } else if (c == 'F' || c == 'f') {
              return 15;
          } else {
              throw new IllegalArgumentException("The character [" + c + "] does not represent a valid hex digit");
          }
      }
focal_method.class_method_signature: HexUtil.hexCharToIntValue(char c)
focal_method.full_signature: static public int hexCharToIntValue(char c)
focal_method.identifier: hexCharToIntValue
focal_method.modifiers: static public
focal_method.parameters: (char c)
focal_method.return: int
focal_method.signature: int hexCharToIntValue(char c)