code: static DecimalFormat.Unit getUnit(
              Map<String, DecimalFormat.Unit[]> units, String variant, int base) {
          DecimalFormat.Unit[] byBase = units.get(variant);
          if (byBase == null) {
              byBase = units.get(CompactDecimalDataCache.OTHER);
          }
          return byBase[base];
      }
docs: Fetches a prefix or suffix given a plural variant and log10 value. If it
  can't find the given variant, it falls back to "other".
  @param prefixOrSuffix the prefix or suffix map
  @param variant the plural variant
  @param base log10 value. 0 <= base < MAX_DIGITS.
  @return the prefix or suffix.