Class PluralSelectorFactory

java.lang.Object
com.ibm.icu.message2.PluralSelectorFactory
All Implemented Interfaces:
SelectorFactory

class PluralSelectorFactory extends Object implements SelectorFactory
Creates a Selector doing plural selection, similar to {exp, plural} in MessageFormat.
  • Field Details

  • Constructor Details

    • PluralSelectorFactory

      PluralSelectorFactory(String type)
      Creates a PluralSelectorFactory of the desired type.
      Parameters:
      type - the kind of plural selection we want
  • Method Details

    • createSelector

      public Selector createSelector(Locale locale, Map<String,Object> fixedOptions)
      The method that is called to create a selector.
      Specified by:
      createSelector in interface SelectorFactory
      Parameters:
      locale - the locale to use for selection.
      fixedOptions - the options to use for selection. The keys and values are function dependent.
      Returns:
      The Selector.