Package opennlp.uima.normalizer

## Class NumberUtil

- java.lang.Object
- - opennlp.uima.normalizer.NumberUtil

-     public final class NumberUtil
      extends Object

  Provides methods to parse numbers which occur in natural language texts.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `NumberUtil()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static boolean` | `isLanguageSupported​(String languageCode)` | Checks if the language is supported.
    `static Number` | `parse​(String number, String languageCode)` | Parses a specified `number` for a certain `languageCode`.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NumberUtil

          public NumberUtil()

  - ### Method Detail

    - #### isLanguageSupported

          public static boolean isLanguageSupported​(String languageCode)

      Checks if the language is supported.
      Parameters:
        `languageCode` - A ISO conform language code, e.g. "en", "pt"
      Returns:
        true if the language is supported

    - #### parse

          public static Number parse​(String number,
                                     String languageCode)
                              throws ParseException

      Parses a specified `number` for a certain `languageCode`.
      Parameters:
        `number` - The suspected number to parse.
        `languageCode` - A ISO conform language code, e.g. "en", "pt"
      Returns:
        The parsed `Number`.
      Throws:
        `ParseException` - Thrown if errors occurred during parsing.
        `IllegalArgumentException` - Thrown if the `languageCode` is not supported.