public abstract class MeasureFormat extends UFormat
To format or parse a Measure object, first create a formatter object using a MeasureFormat factory method. Then use that object's format and parse methods.
UFormat
,
Serialized FormFormat.Field
Modifier | Constructor and Description |
---|---|
protected |
MeasureFormat()
Deprecated.
This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
static MeasureFormat |
getCurrencyFormat()
Return a formatter for CurrencyAmount objects in the default
FORMAT locale. |
static MeasureFormat |
getCurrencyFormat(ULocale locale)
Return a formatter for CurrencyAmount objects in the given
locale.
|
clone, format, format, formatToCharacterIterator, parseObject, parseObject
protected MeasureFormat()
public static MeasureFormat getCurrencyFormat(ULocale locale)
locale
- desired localepublic static MeasureFormat getCurrencyFormat()
FORMAT
locale.ULocale.Category.FORMAT
Copyright (c) 2013 IBM Corporation and others.