Package | Description |
---|---|
com.ibm.icu.text |
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.
|
com.ibm.icu.util |
International calendars and other utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
CompactDecimalFormat
Formats numbers in compact (abbreviated) notation, like "1.2K" instead of "1200".
|
class |
DecimalFormat
[icu enhancement] ICU's replacement for
java.text.DecimalFormat . |
class |
RuleBasedNumberFormat
A class that formats numbers according to a set of rules.
|
Modifier and Type | Field and Description |
---|---|
protected NumberFormat |
DateFormat.numberFormat
The number formatter that
DateFormat uses to format numbers
in dates and times. |
Modifier and Type | Method and Description |
---|---|
NumberFormat |
NumberFormat.NumberFormatFactory.createFormat(Locale loc,
int formatType)
Returns a number format of the appropriate type.
|
NumberFormat |
NumberFormat.NumberFormatFactory.createFormat(ULocale loc,
int formatType)
Returns a number format of the appropriate type.
|
static NumberFormat |
NumberFormat.getCurrencyInstance()
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getCurrencyInstance(Locale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getCurrencyInstance(ULocale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getInstance()
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getInstance(int style)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getInstance(Locale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getInstance(Locale inLocale,
int style)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getInstance(ULocale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getInstance(ULocale desiredLocale,
int choice)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getIntegerInstance()
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getIntegerInstance(Locale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getIntegerInstance(ULocale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
NumberFormat |
TimeUnitFormat.getNumberFormat()
Deprecated.
ICU 53 see
MeasureFormat . |
NumberFormat |
RelativeDateTimeFormatter.getNumberFormat()
Returns a copy of the NumberFormat this object is using.
|
NumberFormat |
MeasureFormat.getNumberFormat()
Get a copy of the number format.
|
NumberFormat |
DateFormat.getNumberFormat()
Returns the number formatter which this date/time formatter uses to
format and parse a time.
|
NumberFormat |
SimpleDateFormat.getNumberFormat(char field)
give the NumberFormat used for the field like 'y'(year) and 'M'(year)
|
static NumberFormat |
NumberFormat.getNumberInstance()
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getNumberInstance(Locale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getNumberInstance(ULocale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getPercentInstance()
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getPercentInstance(Locale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getPercentInstance(ULocale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getScientificInstance()
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getScientificInstance(Locale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
static NumberFormat |
NumberFormat.getScientificInstance(ULocale inLocale)
NOTE: New users are strongly encouraged to use
NumberFormatter instead of NumberFormat. |
Modifier and Type | Method and Description |
---|---|
static MeasureFormat |
MeasureFormat.getInstance(Locale locale,
MeasureFormat.FormatWidth formatWidth,
NumberFormat format)
Create a format from the
Locale , formatWidth, and format. |
static RelativeDateTimeFormatter |
RelativeDateTimeFormatter.getInstance(Locale locale,
NumberFormat nf)
Returns a RelativeDateTimeFormatter for a particular
Locale that uses a
particular NumberFormat object. |
static MeasureFormat |
MeasureFormat.getInstance(ULocale locale,
MeasureFormat.FormatWidth formatWidth,
NumberFormat format)
Create a format from the locale, formatWidth, and format.
|
static RelativeDateTimeFormatter |
RelativeDateTimeFormatter.getInstance(ULocale locale,
NumberFormat nf)
Returns a RelativeDateTimeFormatter for a particular locale that uses a particular
NumberFormat object.
|
static RelativeDateTimeFormatter |
RelativeDateTimeFormatter.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 context
|
TimeUnitFormat |
TimeUnitFormat.setNumberFormat(NumberFormat format)
Deprecated.
ICU 53 see
MeasureFormat . |
void |
PluralFormat.setNumberFormat(NumberFormat format)
Sets the number format used by this formatter.
|
void |
SimpleDateFormat.setNumberFormat(NumberFormat newNumberFormat)
Overrides superclass method and
This method also clears per field NumberFormat instances
previously set by
SimpleDateFormat.setNumberFormat(String, NumberFormat) |
void |
DateFormat.setNumberFormat(NumberFormat newNumberFormat)
Sets the number formatter.
|
void |
SimpleDateFormat.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)
|
protected void |
SimpleDateFormat.zeroPaddingNumber(NumberFormat nf,
StringBuffer buf,
int value,
int minDigits,
int maxDigits)
Deprecated.
This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
NumberFormat |
GlobalizationPreferences.getNumberFormat(int style)
Gets a number format according to the current settings.
|
protected NumberFormat |
GlobalizationPreferences.guessNumberFormat(int style)
This function can be overridden by subclasses to use different heuristics.
|
Modifier and Type | Method and Description |
---|---|
GlobalizationPreferences |
GlobalizationPreferences.setNumberFormat(int style,
NumberFormat format)
Sets a number format explicitly.
|
Copyright © 2016 Unicode, Inc. and others.