public class LocalizedNumberRangeFormatter extends NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>
NumberRangeFormatter
Modifier and Type | Method and Description |
---|---|
FormattedNumberRange |
formatRange(double first,
double second)
Format the given doubles to a string using the settings specified in the NumberRangeFormatter fluent setting
chain.
|
FormattedNumberRange |
formatRange(int first,
int second)
Format the given integers to a string using the settings specified in the NumberRangeFormatter fluent setting
chain.
|
FormattedNumberRange |
formatRange(Number first,
Number second)
Format the given Numbers to a string using the settings specified in the NumberRangeFormatter fluent setting
chain.
|
UnlocalizedNumberRangeFormatter |
withoutLocale()
Disassociate the locale from this formatter.
|
collapse, equals, hashCode, identityFallback, numberFormatterBoth, numberFormatterFirst, numberFormatterSecond
public FormattedNumberRange formatRange(int first, int second)
first
- The first number in the range, usually to the left in LTR locales.second
- The second number in the range, usually to the right in LTR locales.NumberRangeFormatter
public FormattedNumberRange formatRange(double first, double second)
first
- The first number in the range, usually to the left in LTR locales.second
- The second number in the range, usually to the right in LTR locales.NumberRangeFormatter
public FormattedNumberRange formatRange(Number first, Number second)
first
- The first number in the range, usually to the left in LTR locales.second
- The second number in the range, usually to the right in LTR locales.IllegalArgumentException
- if first or second is nullNumberRangeFormatter
public UnlocalizedNumberRangeFormatter withoutLocale()
Copyright © 2016 Unicode, Inc. and others.