Class TextSelectorFactory.TextSelector

java.lang.Object
com.ibm.icu.message2.TextSelectorFactory.TextSelector
All Implemented Interfaces:
Selector
Enclosing class:
TextSelectorFactory

private static class TextSelectorFactory.TextSelector extends Object implements Selector
  • Constructor Details

    • TextSelector

      private TextSelector()
  • Method Details

    • matches

      public boolean matches(Object value, String key, Map<String,Object> variableOptions)
      A method that is invoked for the object to match and each key.

      For example an English plural matches would return true for matches(1, "1"), matches(1, "one"), and matches(1, "*").

      Specified by:
      matches in interface Selector
      Parameters:
      value - the value to select on.
      key - the key to test for matching.
      variableOptions - options that are not know at build time.
      Returns:
      the formatted string.