Class PluralSelectorFactory.PluralSelectorImpl

java.lang.Object
com.ibm.icu.message2.PluralSelectorFactory.PluralSelectorImpl
All Implemented Interfaces:
Selector
Enclosing class:
PluralSelectorFactory

private static class PluralSelectorFactory.PluralSelectorImpl extends Object implements Selector
  • Field Details

  • Constructor Details

  • 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.