code: public NumberFormat getNumberFormat(int style) {
          if (style < 0 || style >= NF_LIMIT) {
              throw new IllegalArgumentException("Illegal number format type");
          }
          NumberFormat result = null;
          if (numberFormats != null) {
              result = numberFormats[style];
          }
          if (result != null) {
              result = (NumberFormat) result.clone(); // clone for safety (later optimize)
          } else {
              result = guessNumberFormat(style);
          }
          return result;
      }
docs: Gets a number format according to the current settings.  If
  there is an explicit (non-null) number format set, a copy of
  that is returned.  Otherwise, the language priority list is
  used.
  
  @param style NF_NUMBER, NF_CURRENCY, NF_PERCENT, NF_SCIENTIFIC, NF_INTEGER
  @hide draft / provisional / internal are hidden on Android