code: public SimpleFormatter getByVariant(CharSequence variant) {
          assert isValid();
          int idx = StandardPlural.indexOrOtherIndexFromString(variant);
          SimpleFormatter template = templates[idx];
          return (template == null && idx != StandardPlural.OTHER_INDEX) ?
                  templates[StandardPlural.OTHER_INDEX] : template;
      }
docs: Gets the SimpleFormatter for a particular variant.
  @param variant "zero", "one", "two", "few", "many", "other"
  @return the SimpleFormatter