DecimalFormatSymbols.GetInstance(Locale) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the DecimalFormatSymbols
instance for the specified
locale.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Ljava/text/DecimalFormatSymbols;", "")]
public static Java.Text.DecimalFormatSymbols? GetInstance (Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Ljava/text/DecimalFormatSymbols;", "")>]
static member GetInstance : Java.Util.Locale -> Java.Text.DecimalFormatSymbols
Parameters
- locale
- Locale
the desired locale.
Returns
a DecimalFormatSymbols
instance.
- Attributes
Exceptions
if locale == null
Remarks
Gets the DecimalFormatSymbols
instance for the specified locale. If the specified locale contains the java.util.Locale#UNICODE_LOCALE_EXTENSION
for the numbering system, the instance is initialized with the specified numbering system if the JRE implementation supports it. For example,
NumberFormat.getNumberInstance(Locale.forLanguageTag("th-TH-u-nu-thai"))
This may return a NumberFormat
instance with the Thai numbering system, instead of the Latin numbering system.
Added in 1.6.
Java documentation for java.text.DecimalFormatSymbols.getInstance(java.util.Locale)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.