code: public GlobalizationPreferences setNumberFormat(int style, NumberFormat format) {
          if (isFrozen()) {
              throw new UnsupportedOperationException("Attempt to modify immutable object");
          }
          if (numberFormats == null) {
              numberFormats = new NumberFormat[NF_LIMIT];
          }
          numberFormats[style] = (NumberFormat) format.clone(); // for safety
          return this;
      }
docs: Sets a number format explicitly. Overrides the general locale settings.
  
  @param style NF_NUMBER, NF_CURRENCY, NF_PERCENT, NF_SCIENTIFIC, NF_INTEGER
  @param format The number format
  @return this, for chaining
  @hide draft / provisional / internal are hidden on Android