Class TextSelectorFactory

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

class TextSelectorFactory extends Object implements SelectorFactory
Creates a Selector doing literal selection, similar to {exp, select} in MessageFormat.
  • Constructor Details

    • TextSelectorFactory

      TextSelectorFactory()
  • 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.