Package com.ibm.icu.number
Library for localized number formatting introduced in ICU 60; for usage, see com.ibm.icu.number.NumberFormatter.
-
Class Summary Class Description CompactNotation A class that defines the scientific notation style to be used when formatting numbers in NumberFormatter.CompactNotation.CompactHandler CurrencyPrecision A class that defines a rounding strategy parameterized by a currency to be used when formatting numbers in NumberFormatter.FormattedNumber The result of a number formatting operation.FormattedNumberRange The result of a number range formatting operation.FractionPrecision A class that defines a rounding strategy based on a number of fraction places and optionally significant digits to be used when formatting numbers in NumberFormatter.IntegerWidth A class that defines the strategy for padding and truncating integers before the decimal separator.LocalizedNumberFormatter A NumberFormatter that has a locale associated with it; this means .format() methods are available.LocalizedNumberRangeFormatter A NumberRangeFormatter that has a locale associated with it; this means .formatRange() methods are available.Notation A class that defines the notation style to be used when formatting numbers in NumberFormatter.NumberFormatter All-in-one formatter for localized numbers, currencies, and units.NumberFormatterImpl This is the "brain" of the number formatting pipeline.NumberFormatterSettings<T extends NumberFormatterSettings<?>> An abstract base class for specifying settings related to number formatting.NumberPropertyMapper 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.NumberRangeFormatter The main entrypoint to the formatting of ranges of numbers, including currencies and other units of measurement.NumberRangeFormatter.SpanField Class for span fields in FormattedNumberRange.NumberRangeFormatterImpl Business logic behind NumberRangeFormatter.NumberRangeFormatterImpl.NumberRangeDataSink NumberRangeFormatterSettings<T extends NumberRangeFormatterSettings<?>> An abstract base class for specifying settings related to number formatting.NumberSkeletonImpl NumberSkeletonImpl.BlueprintHelpers Utility class for methods for processing stems and options that cannot be interpreted literally.NumberSkeletonImpl.EnumToStemString Utility class for methods that convert from enums to stem strings.NumberSkeletonImpl.GeneratorHelpers Utility class for methods for generating a token corresponding to each macro-prop.NumberSkeletonImpl.StemToObject Utility class for methods that convert from StemEnum to corresponding objects or enums.Precision A class that defines the rounding precision to be used when formatting numbers in NumberFormatter.Precision.BogusRounder Deprecated. This API is ICU internal only.Precision.CurrencyRounderImpl Precision.FracSigRounderImpl Precision.FractionRounderImpl Precision.IncrementFiveRounderImpl Used for increments with 5 as the only digit (nickel rounding).Precision.IncrementOneRounderImpl Used for increments with 1 as the only digit.Precision.IncrementRounderImpl Used for strange increments like 3.14.Precision.InfiniteRounderImpl Precision.SignificantRounderImpl Scale A class that defines a quantity by which a number should be multiplied when formatting.ScientificNotation A class that defines the scientific notation style to be used when formatting numbers in NumberFormatter.ScientificNotation.ScientificHandler ScientificNotation.ScientificModifier SimpleNotation A class that defines the simple notation style to be used when formatting numbers in NumberFormatter.UnlocalizedNumberFormatter A NumberFormatter that does not yet have a locale.UnlocalizedNumberRangeFormatter A NumberRangeFormatter that does not yet have a locale. -
Enum Summary Enum Description NumberFormatter.DecimalSeparatorDisplay An enum declaring how to render the decimal separator.NumberFormatter.GroupingStrategy An enum declaring the strategy for when and how to display grouping separators (i.e., the separator, often a comma or period, after every 2-3 powers of ten).NumberFormatter.RoundingPriority An enum declaring how to resolve conflicts between maximum fraction digits and maximum significant digits.NumberFormatter.SignDisplay An enum declaring how to denote positive and negative numbers.NumberFormatter.TrailingZeroDisplay An enum declaring how to render trailing zeros.NumberFormatter.UnitWidth An enum declaring how to render units, including currencies.NumberRangeFormatter.RangeCollapse Defines how to merge fields that are identical across the range sign.NumberRangeFormatter.RangeIdentityFallback Defines the behavior when the two numbers in the range are identical after rounding.NumberRangeFormatter.RangeIdentityResult Used in the result class FormattedNumberRange to indicate to the user whether the numbers formatted in the range were equal or not, and whether or not the identity fallback was applied.NumberSkeletonImpl.ParseState While parsing a skeleton, this enum records what type of option we expect to find next.NumberSkeletonImpl.StemEnum All possible stem literals have an entry in the StemEnum. -
Exception Summary Exception Description SkeletonSyntaxException Exception used for illegal number skeleton strings.