Package com.ibm.icu.impl.jdkadapter
Class DecimalFormatICU
java.lang.Object
java.text.Format
java.text.NumberFormat
java.text.DecimalFormat
com.ibm.icu.impl.jdkadapter.DecimalFormatICU
- All Implemented Interfaces:
Serializable
,Cloneable
DecimalFormatICU is an adapter class which wraps ICU4J DecimalFormat and
implements java.text.DecimalFormat APIs.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field, NumberFormat.Style
-
Field Summary
FieldsFields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyLocalizedPattern
(String pattern) void
applyPattern
(String pattern) clone()
boolean
format
(double number, StringBuffer result, FieldPosition fieldPosition) format
(long number, StringBuffer result, FieldPosition fieldPosition) int
int
int
int
int
int
int
hashCode()
boolean
boolean
boolean
boolean
private static AttributedCharacterIterator.Attribute
mapAttribute
(AttributedCharacterIterator.Attribute icuAttribute) parse
(String text, ParsePosition pos) void
setCurrency
(Currency currency) void
setDecimalFormatSymbols
(DecimalFormatSymbols newSymbols) void
setDecimalSeparatorAlwaysShown
(boolean newValue) void
setGroupingSize
(int newValue) void
setGroupingUsed
(boolean newValue) void
setMaximumFractionDigits
(int newValue) void
setMaximumIntegerDigits
(int newValue) void
setMinimumFractionDigits
(int newValue) void
setMinimumIntegerDigits
(int newValue) void
setMultiplier
(int newValue) void
setNegativePrefix
(String newValue) void
setNegativeSuffix
(String newValue) void
setParseBigDecimal
(boolean newValue) void
setParseIntegerOnly
(boolean value) void
setPositivePrefix
(String newValue) void
setPositiveSuffix
(String newValue) void
setRoundingMode
(RoundingMode roundingMode) unwrap()
static DecimalFormat
wrap
(DecimalFormat icuDecfmt) Methods inherited from class java.text.DecimalFormat
format
Methods inherited from class java.text.NumberFormat
format, format, getAvailableLocales, getCompactNumberInstance, getCompactNumberInstance, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, parse, parseObject
Methods inherited from class java.text.Format
format, parseObject
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
fIcuDecfmt
-
-
Constructor Details
-
DecimalFormatICU
-
-
Method Details
-
wrap
-
unwrap
-
applyLocalizedPattern
- Overrides:
applyLocalizedPattern
in classDecimalFormat
-
applyPattern
- Overrides:
applyPattern
in classDecimalFormat
-
clone
- Overrides:
clone
in classDecimalFormat
-
equals
- Overrides:
equals
in classDecimalFormat
-
format
- Overrides:
format
in classDecimalFormat
-
format
- Overrides:
format
in classDecimalFormat
-
formatToCharacterIterator
- Overrides:
formatToCharacterIterator
in classDecimalFormat
-
getCurrency
- Overrides:
getCurrency
in classDecimalFormat
-
getDecimalFormatSymbols
- Overrides:
getDecimalFormatSymbols
in classDecimalFormat
-
getGroupingSize
public int getGroupingSize()- Overrides:
getGroupingSize
in classDecimalFormat
-
getMaximumFractionDigits
public int getMaximumFractionDigits()- Overrides:
getMaximumFractionDigits
in classDecimalFormat
-
getMaximumIntegerDigits
public int getMaximumIntegerDigits()- Overrides:
getMaximumIntegerDigits
in classDecimalFormat
-
getMinimumFractionDigits
public int getMinimumFractionDigits()- Overrides:
getMinimumFractionDigits
in classDecimalFormat
-
getMinimumIntegerDigits
public int getMinimumIntegerDigits()- Overrides:
getMinimumIntegerDigits
in classDecimalFormat
-
getMultiplier
public int getMultiplier()- Overrides:
getMultiplier
in classDecimalFormat
-
getNegativePrefix
- Overrides:
getNegativePrefix
in classDecimalFormat
-
getNegativeSuffix
- Overrides:
getNegativeSuffix
in classDecimalFormat
-
getPositivePrefix
- Overrides:
getPositivePrefix
in classDecimalFormat
-
getPositiveSuffix
- Overrides:
getPositiveSuffix
in classDecimalFormat
-
getRoundingMode
- Overrides:
getRoundingMode
in classDecimalFormat
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDecimalFormat
-
isDecimalSeparatorAlwaysShown
public boolean isDecimalSeparatorAlwaysShown()- Overrides:
isDecimalSeparatorAlwaysShown
in classDecimalFormat
-
isParseBigDecimal
public boolean isParseBigDecimal()- Overrides:
isParseBigDecimal
in classDecimalFormat
-
parse
- Overrides:
parse
in classDecimalFormat
-
setCurrency
- Overrides:
setCurrency
in classDecimalFormat
-
setDecimalFormatSymbols
- Overrides:
setDecimalFormatSymbols
in classDecimalFormat
-
setDecimalSeparatorAlwaysShown
public void setDecimalSeparatorAlwaysShown(boolean newValue) - Overrides:
setDecimalSeparatorAlwaysShown
in classDecimalFormat
-
setGroupingSize
public void setGroupingSize(int newValue) - Overrides:
setGroupingSize
in classDecimalFormat
-
setMaximumFractionDigits
public void setMaximumFractionDigits(int newValue) - Overrides:
setMaximumFractionDigits
in classDecimalFormat
-
setMaximumIntegerDigits
public void setMaximumIntegerDigits(int newValue) - Overrides:
setMaximumIntegerDigits
in classDecimalFormat
-
setMinimumFractionDigits
public void setMinimumFractionDigits(int newValue) - Overrides:
setMinimumFractionDigits
in classDecimalFormat
-
setMinimumIntegerDigits
public void setMinimumIntegerDigits(int newValue) - Overrides:
setMinimumIntegerDigits
in classDecimalFormat
-
setMultiplier
public void setMultiplier(int newValue) - Overrides:
setMultiplier
in classDecimalFormat
-
setNegativePrefix
- Overrides:
setNegativePrefix
in classDecimalFormat
-
setNegativeSuffix
- Overrides:
setNegativeSuffix
in classDecimalFormat
-
setParseBigDecimal
public void setParseBigDecimal(boolean newValue) - Overrides:
setParseBigDecimal
in classDecimalFormat
-
setPositivePrefix
- Overrides:
setPositivePrefix
in classDecimalFormat
-
setPositiveSuffix
- Overrides:
setPositiveSuffix
in classDecimalFormat
-
setRoundingMode
- Overrides:
setRoundingMode
in classDecimalFormat
-
toLocalizedPattern
- Overrides:
toLocalizedPattern
in classDecimalFormat
-
toPattern
- Overrides:
toPattern
in classDecimalFormat
-
isGroupingUsed
public boolean isGroupingUsed()- Overrides:
isGroupingUsed
in classNumberFormat
-
isParseIntegerOnly
public boolean isParseIntegerOnly()- Overrides:
isParseIntegerOnly
in classNumberFormat
-
setGroupingUsed
public void setGroupingUsed(boolean newValue) - Overrides:
setGroupingUsed
in classDecimalFormat
-
setParseIntegerOnly
public void setParseIntegerOnly(boolean value) - Overrides:
setParseIntegerOnly
in classNumberFormat
-
mapAttribute
private static AttributedCharacterIterator.Attribute mapAttribute(AttributedCharacterIterator.Attribute icuAttribute)
-