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(java.lang.Number first,
java.lang.Number second)
Format the given Numbers to a string using the settings specified in the NumberRangeFormatter fluent setting
chain.
|
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(java.lang.Number first, java.lang.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.NumberRangeFormatter
Copyright ? 2016 Unicode, Inc. and others.