Class CurrencyFormat
java.lang.Object
java.text.Format
com.ibm.icu.text.UFormat
com.ibm.icu.text.MeasureFormat
com.ibm.icu.text.CurrencyFormat
- All Implemented Interfaces:
Serializable, Cloneable
Temporary internal concrete subclass of MeasureFormat implementing parsing and formatting of
CurrencyAmount objects. This class is likely to be redesigned and rewritten in the near future.
This class currently delegates to DecimalFormat for parsing and formatting.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class MeasureFormat
MeasureFormat.FormatWidth, MeasureFormat.MeasureProxy, MeasureFormat.NumberFormatterCacheEntry, MeasureFormat.NumericFormattersNested classes/interfaces inherited from class UFormat
UFormat.SpanFieldNested classes/interfaces inherited from class Format
Format.Field -
Field Summary
FieldsFields inherited from class MeasureFormat
NUMBER_FORMATTER_CURRENCY, NUMBER_FORMATTER_INTEGER, NUMBER_FORMATTER_STANDARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(Object obj, StringBuffer toAppendTo, FieldPosition pos) Override Format.format().parseObject(String source, ParsePosition pos) Override Format.parseObject().private Objectprivate ObjectMethods inherited from class MeasureFormat
clearCache, equals, formatMeasurePerUnit, formatMeasures, formatMeasures, getCurrencyFormat, getCurrencyFormat, getCurrencyFormat, getInstance, getInstance, getInstance, getInstance, getLocale, getNumberFormat, getNumberFormatInternal, getNumberFormatter, getRangeFormat, getUnitDisplayName, getWidth, hashCode, toCurrencyProxy, toTimeUnitProxy, withLocale, withNumberFormatMethods inherited from class Format
clone, format, formatToCharacterIterator, parseObject
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Constructor Details
-
CurrencyFormat
-
-
Method Details
-
format
Override Format.format().- Overrides:
formatin classMeasureFormat- Parameters:
obj- must be a Collection<? extends Measure>, Measure[], or Measure object.toAppendTo- Formatted string appended here.pos- Identifies a field in the formatted text.- See Also:
-
parseObject
Override Format.parseObject().- Overrides:
parseObjectin classMeasureFormat- See Also:
-
writeReplace
- Throws:
ObjectStreamException
-
readResolve
- Throws:
ObjectStreamException
-