Top Description Constructors Methods
com.ibm.icu.number

pack-priv final Class NumberPropertyMapper

extends Object
Class Inheritance
Imports
java.math.BigDecimal, .MathContext, com.ibm.icu.impl.number.AffixPatternProvider, .CustomSymbolCurrency, .DecimalFormatProperties, .Grouper, .MacroProps, .Padder, .PatternStringParser, .PatternStringUtils, .PropertiesAffixPatternProvider, .RoundingUtils, com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay, .NumberFormatter.SignDisplay, .Precision.FractionRounderImpl, .Precision.IncrementRounderImpl, .Precision.SignificantRounderImpl, com.ibm.icu.text.CompactDecimalFormat.CompactStyle, .DecimalFormatSymbols, .PluralRules, com.ibm.icu.util.Currency, .Currency.CurrencyUsage, .ULocale

This class, as well as NumberFormatterImpl, could go into the impl package, but they depend on too many package-private members of the public APIs.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static UnlocalizedNumberFormatter
create(DecimalFormatProperties properties, DecimalFormatSymbols symbols)

Convenience method to create a NumberFormatter directly from Properties.

public static UnlocalizedNumberFormatter
create(DecimalFormatProperties properties, DecimalFormatSymbols symbols, DecimalFormatProperties exportedProperties)

Convenience method to create a NumberFormatter directly from Properties.

public static UnlocalizedNumberFormatter
create(String pattern, DecimalFormatSymbols symbols)

Convenience method to create a NumberFormatter directly from a pattern string.

public static MacroProps

Returns:

A new MacroProps containing all of the information in the Properties.
oldToNew
(DecimalFormatProperties
The property bag to be mapped.
properties
,
DecimalFormatSymbols
The symbols associated with the property bag.
symbols
,
DecimalFormatProperties
A property bag in which to store validated properties. Used by some DecimalFormat getters.
exportedProperties
)

Creates a new MacroProps object based on the content of a DecimalFormatProperties object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NumberPropertyMapperback to summary
pack-priv NumberPropertyMapper()

Method Detail

createback to summary
public static UnlocalizedNumberFormatter create(DecimalFormatProperties properties, DecimalFormatSymbols symbols)

Convenience method to create a NumberFormatter directly from Properties.

createback to summary
public static UnlocalizedNumberFormatter create(DecimalFormatProperties properties, DecimalFormatSymbols symbols, DecimalFormatProperties exportedProperties)

Convenience method to create a NumberFormatter directly from Properties.

createback to summary
public static UnlocalizedNumberFormatter create(String pattern, DecimalFormatSymbols symbols)

Convenience method to create a NumberFormatter directly from a pattern string. Something like this could become public API if there is demand.

Note

This appears to be dead code.

oldToNewback to summary
public static MacroProps oldToNew(DecimalFormatProperties properties, DecimalFormatSymbols symbols, DecimalFormatProperties exportedProperties)

Creates a new MacroProps object based on the content of a DecimalFormatProperties object. In other words, maps Properties to MacroProps. This function is used by the JDK-compatibility API to call into the ICU 60 fluent number formatting pipeline.

Parameters
properties:DecimalFormatProperties

The property bag to be mapped.

symbols:DecimalFormatSymbols

The symbols associated with the property bag.

exportedProperties:DecimalFormatProperties

A property bag in which to store validated properties. Used by some DecimalFormat getters.

Returns:MacroProps

A new MacroProps containing all of the information in the Properties.