Top Description Fields Constructors Methods
com.ibm.icu.number

public Class UnlocalizedNumberRangeFormatter

extends NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>
Class Inheritance
Imports
java.util.Locale, com.ibm.icu.util.ULocale

A NumberRangeFormatter that does not yet have a locale. In order to format, a locale must be specified. Instances of this class are immutable and thread-safe.
Author
sffc
ICU Status
Stable since ICU 63.
See Also
NumberRangeFormatter

Field Summary

Inherited from com.ibm.icu.number.NumberRangeFormatterSettings:
KEY_COLLAPSEKEY_FORMATTER_1KEY_FORMATTER_2KEY_IDENTITY_FALLBACKKEY_LOCALEKEY_MACROSKEY_MAXKEY_SAME_FORMATTERS

Constructor Summary

AccessConstructor and Description
pack-priv
UnlocalizedNumberRangeFormatter()

Base constructor; called during startup only.

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv UnlocalizedNumberRangeFormatter
public LocalizedNumberRangeFormatter

Returns:

The fluent chain
locale
(Locale
The locale to use when loading data for number range formatting.
locale
)

Associate the given locale with the number range formatter.

public LocalizedNumberRangeFormatter

Returns:

The fluent chain
locale
(ULocale
The locale to use when loading data for number range formatting.
locale
)

ULocale version of the locale(Locale) setter above.

Inherited from com.ibm.icu.number.NumberRangeFormatterSettings:
collapseequalshashCodeidentityFallbacknumberFormatterBothnumberFormatterFirstnumberFormatterSecondresolve

Constructor Detail

UnlocalizedNumberRangeFormatterback to summary
pack-priv UnlocalizedNumberRangeFormatter()

Base constructor; called during startup only.

UnlocalizedNumberRangeFormatterback to summary
pack-priv UnlocalizedNumberRangeFormatter(NumberRangeFormatterSettings<?> parent, int key, Object value)

Method Detail

createback to summary
pack-priv UnlocalizedNumberRangeFormatter create(int key, Object value)

Implements abstract com.ibm.icu.number.NumberRangeFormatterSettings.create.

Annotations
@Override
localeback to summary
public LocalizedNumberRangeFormatter locale(Locale locale)

Associate the given locale with the number range formatter. The locale is used for picking the appropriate symbols, formats, and other data for number display.

To use the Java default locale, call Locale.getDefault():

NumberFormatter.with(). ... .locale(Locale.getDefault())
Parameters
locale:Locale

The locale to use when loading data for number range formatting.

Returns:LocalizedNumberRangeFormatter

The fluent chain

ICU Status
Stable since ICU 63.
localeback to summary
public LocalizedNumberRangeFormatter locale(ULocale locale)

ULocale version of the locale(Locale) setter above.

Parameters
locale:ULocale

The locale to use when loading data for number range formatting.

Returns:LocalizedNumberRangeFormatter

The fluent chain

ICU Status
Stable since ICU 63.
See Also
locale(Locale)