Class ICUNumberer_de

All Implemented Interfaces:
Numberer

public class ICUNumberer_de extends ICUNumbererPE
A numberer for German using the ICU features, which supports variable ordinal suffixing, for example '-en', '-es'
  • Constructor Details

    • ICUNumberer_de

      public ICUNumberer_de()
  • Method Details

    • config

      public void config(Locale locale, String privateUseExtension, Configuration config)
      Description copied from class: ICUNumbererPE
      Configure an ICU numberer. This includes possibly substituting a default locale if that requested isn't supported.
      Overrides:
      config in class ICUNumbererPE
      Parameters:
      locale - the locale to use
      privateUseExtension - the language code extension used to denote required numbering
      config - the system Configuration
    • postProcessOrdinal

      public String postProcessOrdinal(String result, String ordinalParam)
      Replace trailing 'e' on German ordinals with the post-hyphen suffix, e.g. '-en'
      Overrides:
      postProcessOrdinal in class ICUNumbererPE
      Parameters:
      result - the raw result as delivered by ICU
      ordinalParam - the requested ordinal form, e.g. "-er" or "-es"
      Returns:
      New ordinal as words, with appropriate suffix