src/java.base/share/classes/java/text/NumberFormat.java
changeset 57679 314e62bbdb16
parent 54206 003cc64366da
child 57956 e0b8b019d2f5
equal deleted inserted replaced
57678:b948b920e29f 57679:314e62bbdb16
   573     }
   573     }
   574 
   574 
   575     /**
   575     /**
   576      * Returns a currency format for the specified locale.
   576      * Returns a currency format for the specified locale.
   577      *
   577      *
       
   578      * <p>If the specified locale contains the "{@code cf}" (
       
   579      * <a href="https://www.unicode.org/reports/tr35/tr35.html#UnicodeCurrencyFormatIdentifier">
       
   580      * currency format style</a>)
       
   581      * <a href="../util/Locale.html#def_locale_extension">Unicode extension</a>,
       
   582      * the returned currency format uses the style if it is available.
       
   583      * Otherwise, the style uses the default "{@code standard}" currency format.
       
   584      * For example, if the style designates "{@code account}", negative
       
   585      * currency amounts use a pair of parentheses in some locales.
       
   586      *
   578      * @param inLocale the desired locale
   587      * @param inLocale the desired locale
   579      * @return the {@code NumberFormat} instance for currency formatting
   588      * @return the {@code NumberFormat} instance for currency formatting
   580      */
   589      */
   581     public static NumberFormat getCurrencyInstance(Locale inLocale) {
   590     public static NumberFormat getCurrencyInstance(Locale inLocale) {
   582         return getInstance(inLocale, null, CURRENCYSTYLE);
   591         return getInstance(inLocale, null, CURRENCYSTYLE);