Java java.text NumberFormat fields, constructors, methods, implement or subclass

Example usage for Java java.text NumberFormat fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.text NumberFormat.

The text is from its open source code.

Subclass

java.text.NumberFormat has subclasses.
Click this link to see all its subclasses.

Field

intINTEGER_FIELD
Field constant used to construct a FieldPosition object.
intFRACTION_FIELD
Field constant used to construct a FieldPosition object.

Constructor

NumberFormat()
Sole constructor.

Method

Objectclone()
Overrides Cloneable.
booleanequals(Object obj)
Overrides equals.
Stringformat(double number)
Specialization of format.
Stringformat(long number)
Specialization of format.
StringBufferformat(Object number, StringBuffer toAppendTo, FieldPosition pos)
Formats a number and appends the resulting text to the given string buffer.
StringBufferformat(double number, StringBuffer toAppendTo, FieldPosition pos)
Specialization of format.
StringBufferformat(long number, StringBuffer toAppendTo, FieldPosition pos)
Specialization of format.
AttributedCharacterIteratorformatToCharacterIterator(Object obj)
Formats an Object producing an AttributedCharacterIterator.
Locale[]getAvailableLocales()
Returns an array of all locales for which the get*Instance methods of this class can return localized instances.
CurrencygetCurrency()
Gets the currency used by this number format when formatting currency values.
NumberFormatgetCurrencyInstance()
Returns a currency format for the current default java.util.Locale.Category#FORMAT FORMAT locale.
NumberFormatgetCurrencyInstance(Locale inLocale)
Returns a currency format for the specified locale.
NumberFormatgetInstance()
Returns a general-purpose number format for the current default java.util.Locale.Category#FORMAT FORMAT locale.
NumberFormatgetInstance(Locale inLocale)
Returns a general-purpose number format for the specified locale.
NumberFormatgetIntegerInstance()
Returns an integer number format for the current default java.util.Locale.Category#FORMAT FORMAT locale.
NumberFormatgetIntegerInstance(Locale inLocale)
Returns an integer number format for the specified locale.
intgetMaximumFractionDigits()
Returns the maximum number of digits allowed in the fraction portion of a number.
intgetMaximumIntegerDigits()
Returns the maximum number of digits allowed in the integer portion of a number.
intgetMinimumFractionDigits()
Returns the minimum number of digits allowed in the fraction portion of a number.
intgetMinimumIntegerDigits()
Returns the minimum number of digits allowed in the integer portion of a number.
NumberFormatgetNumberInstance()
Returns a general-purpose number format for the current default java.util.Locale.Category#FORMAT FORMAT locale.
NumberFormatgetNumberInstance(Locale inLocale)
Returns a general-purpose number format for the specified locale.
NumberFormatgetPercentInstance()
Returns a percentage format for the current default java.util.Locale.Category#FORMAT FORMAT locale.
NumberFormatgetPercentInstance(Locale inLocale)
Returns a percentage format for the specified locale.
RoundingModegetRoundingMode()
Gets the java.math.RoundingMode used in this NumberFormat.
inthashCode()
Overrides hashCode.
booleanisGroupingUsed()
Returns true if grouping is used in this format.
booleanisParseIntegerOnly()
Returns true if this format will parse numbers as integers only.
Numberparse(String source)
Parses text from the beginning of the given string to produce a number.
Numberparse(String source, ParsePosition parsePosition)
Returns a Long if possible (e.g., within the range [Long.MIN_VALUE, Long.MAX_VALUE] and with no decimals), otherwise a Double.
ObjectparseObject(String source, ParsePosition pos)
Parses text from a string to produce a Number.
ObjectparseObject(String source)
Parses text from the beginning of the given string to produce an object.
voidsetCurrency(Currency currency)
Sets the currency used by this number format when formatting currency values.
voidsetGroupingUsed(boolean newValue)
Set whether or not grouping will be used in this format.
voidsetMaximumFractionDigits(int newValue)
Sets the maximum number of digits allowed in the fraction portion of a number.
voidsetMaximumIntegerDigits(int newValue)
Sets the maximum number of digits allowed in the integer portion of a number.
voidsetMinimumFractionDigits(int newValue)
Sets the minimum number of digits allowed in the fraction portion of a number.
voidsetMinimumIntegerDigits(int newValue)
Sets the minimum number of digits allowed in the integer portion of a number.
voidsetParseIntegerOnly(boolean value)
Sets whether or not numbers should be parsed as integers only.
voidsetRoundingMode(RoundingMode roundingMode)
Sets the java.math.RoundingMode used in this NumberFormat.