public class UnlocalizedNumberRangeFormatter extends NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>
NumberRangeFormatter
Modifier and Type | Method and Description |
---|---|
LocalizedNumberRangeFormatter |
locale(Locale locale)
Associate the given locale with the number range formatter.
|
LocalizedNumberRangeFormatter |
locale(ULocale locale)
ULocale version of the
locale(Locale) setter above. |
collapse, equals, hashCode, identityFallback, numberFormatterBoth, numberFormatterFirst, numberFormatterSecond
public LocalizedNumberRangeFormatter locale(Locale locale)
To use the Java default locale, call Locale.getDefault():
NumberFormatter.with(). ... .locale(Locale.getDefault())
locale
- The locale to use when loading data for number range formatting.public LocalizedNumberRangeFormatter locale(ULocale locale)
locale(Locale)
setter above.locale
- The locale to use when loading data for number range formatting.locale(Locale)
Copyright © 2016 Unicode, Inc. and others.