Uses of Class
com.ibm.icu.text.NumberFormat
Packages that use NumberFormat
Package
Description
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
International calendars and other utility classes.
-
Uses of NumberFormat in com.ibm.icu.text
Subclasses of NumberFormat in com.ibm.icu.textModifier and TypeClassDescriptionclassFormats numbers in compact (abbreviated) notation, like "1.2K" instead of "1200".class.classA class that formats numbers according to a set of rules.Fields in com.ibm.icu.text declared as NumberFormatModifier and TypeFieldDescriptionprotected NumberFormatDateFormat.numberFormatThe number formatter thatDateFormatuses to format numbers in dates and times.Methods in com.ibm.icu.text that return NumberFormatModifier and TypeMethodDescriptionNumberFormat.NumberFormatFactory.createFormat(ULocale loc, int formatType) Returns a number format of the appropriate type.NumberFormat.NumberFormatFactory.createFormat(Locale loc, int formatType) Returns a number format of the appropriate type.static final NumberFormatNumberFormat.getCurrencyInstance()NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getCurrencyInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getCurrencyInstance(Locale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static final NumberFormatNumberFormat.getInstance()NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static final NumberFormatNumberFormat.getInstance(int style) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getInstance(ULocale desiredLocale, int choice) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getInstance(Locale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getInstance(Locale inLocale, int style) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static final NumberFormatNumberFormat.getIntegerInstance()NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getIntegerInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getIntegerInstance(Locale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.DateFormat.getNumberFormat()Returns the number formatter which this date/time formatter uses to format and parse a time.MeasureFormat.getNumberFormat()Get a copy of the number format.RelativeDateTimeFormatter.getNumberFormat()Returns a copy of the NumberFormat this object is using.SimpleDateFormat.getNumberFormat(char field) give the NumberFormat used for the field like 'y'(year) and 'M'(year)TimeUnitFormat.getNumberFormat()Deprecated.static final NumberFormatNumberFormat.getNumberInstance()NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getNumberInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getNumberInstance(Locale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static final NumberFormatNumberFormat.getPercentInstance()NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getPercentInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getPercentInstance(Locale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static final NumberFormatNumberFormat.getScientificInstance()NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getScientificInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getScientificInstance(Locale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.Methods in com.ibm.icu.text with parameters of type NumberFormatModifier and TypeMethodDescriptionstatic MeasureFormatMeasureFormat.getInstance(ULocale locale, MeasureFormat.FormatWidth formatWidth, NumberFormat format) Create a format from the locale, formatWidth, and format.static MeasureFormatMeasureFormat.getInstance(Locale locale, MeasureFormat.FormatWidth formatWidth, NumberFormat format) Create a format from theLocale, formatWidth, and format.static RelativeDateTimeFormatterRelativeDateTimeFormatter.getInstance(ULocale locale, NumberFormat nf) Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object.static RelativeDateTimeFormatterRelativeDateTimeFormatter.getInstance(ULocale locale, NumberFormat nf, RelativeDateTimeFormatter.Style style, DisplayContext capitalizationContext) Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object, style, and capitalization contextstatic RelativeDateTimeFormatterRelativeDateTimeFormatter.getInstance(Locale locale, NumberFormat nf) Returns a RelativeDateTimeFormatter for a particularLocalethat uses a particular NumberFormat object.voidDateFormat.setNumberFormat(NumberFormat newNumberFormat) Sets the number formatter.voidPluralFormat.setNumberFormat(NumberFormat format) Sets the number format used by this formatter.voidSimpleDateFormat.setNumberFormat(NumberFormat newNumberFormat) Overrides superclass method and This method also clears per field NumberFormat instances previously set bySimpleDateFormat.setNumberFormat(String, NumberFormat)voidSimpleDateFormat.setNumberFormat(String fields, NumberFormat overrideNF) allow the user to set the NumberFormat for several fields It can be a single field like: "y"(year) or "M"(month) It can be several field combined together: "yMd"(year, month and date) Note: 1 symbol field is enough for multiple symbol fields (so "y" will override "yy", "yyy") If the field is not numeric, then override has no effect (like "MMM" will use abbreviation, not numerical field)TimeUnitFormat.setNumberFormat(NumberFormat format) Deprecated.ICU 53 seeMeasureFormat.protected voidSimpleDateFormat.zeroPaddingNumber(NumberFormat nf, StringBuffer buf, int value, int minDigits, int maxDigits) Deprecated.This API is ICU internal only. -
Uses of NumberFormat in com.ibm.icu.util
Methods in com.ibm.icu.util that return NumberFormatModifier and TypeMethodDescriptionGlobalizationPreferences.getNumberFormat(int style) Gets a number format according to the current settings.protected NumberFormatGlobalizationPreferences.guessNumberFormat(int style) This function can be overridden by subclasses to use different heuristics.Methods in com.ibm.icu.util with parameters of type NumberFormatModifier and TypeMethodDescriptionGlobalizationPreferences.setNumberFormat(int style, NumberFormat format) Sets a number format explicitly.
MeasureFormat.