code: public static CompactDecimalFormat getInstance(Locale locale, CompactStyle style) {
          return new CompactDecimalFormat(ULocale.forLocale(locale), style);
      }
docs: Create a CompactDecimalFormat appropriate for a locale. The result may
  be affected by the number system in the locale, such as ar-u-nu-latn.
  
  @param locale the desired locale
  @param style the compact style