code: public static int toIntValue(final Character ch, final int defaultValue) {
          if (ch == null) {
              return defaultValue;
          }
          return toIntValue(ch.charValue(), defaultValue);
      }
docs: <p>Converts the character to the Integer it represents, throwing an
  exception if the character is not numeric.</p>
  
  <p>This method converts the char '1' to the int 1 and so on.</p>
  
  <pre>
  CharUtils.toIntValue(null, -1) = -1
  CharUtils.toIntValue('3', -1)  = 3
  CharUtils.toIntValue('A', -1)  = -1
  </pre>
  
  @param ch  the character to convert
  @param defaultValue  the default value to use if the character is not numeric
  @return the int value of the character