code: public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) {
          String formatStr = numberFormat.format(number);
          StandardPlural p = selectPlural(number, numberFormat, pluralRules);
          SimpleFormatter formatter = templates[p.ordinal()];
          if (formatter == null) {
              formatter = templates[StandardPlural.OTHER_INDEX];
              assert formatter != null;
          }
          return formatter.format(formatStr);
      }
docs: Format formats a number with this object.
  @param number the number to be formatted
  @param numberFormat used to actually format the number.
  @param pluralRules uses the number and the numberFormat to determine what plural
  variant to use for fetching the formatting template.
  @return the formatted string e.g '3 apples'