public class GeneralMeasureFormat extends MeasureFormat
Format.Field
Modifier | Constructor and Description |
---|---|
protected |
GeneralMeasureFormat(ULocale locale,
FormatWidth style,
Map<MeasureUnit,EnumMap<FormatWidth,Map<String,com.ibm.icu.text.GeneralMeasureFormat.PatternData>>> unitToStyleToCountToFormat,
NumberFormat numberFormat)
Deprecated.
This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
This API is ICU internal only.
|
String |
format(Measure... measures)
Deprecated.
This API is ICU internal only.
|
StringBuffer |
format(Measure measure,
StringBuffer toAppendTo,
FieldPosition pos)
Deprecated.
This API is ICU internal only.
|
StringBuffer |
format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
Deprecated.
This API is ICU internal only.
|
StringBuffer |
format(StringBuffer toAppendto,
FieldPosition pos,
Measure... measures)
Deprecated.
This API is ICU internal only.
|
static MeasureFormat |
getCurrencyFormat()
Deprecated.
This API is ICU internal only.
|
static MeasureFormat |
getCurrencyFormat(ULocale locale)
Deprecated.
This API is ICU internal only.
|
static GeneralMeasureFormat |
getInstance(ULocale locale,
FormatWidth length)
Deprecated.
This API is ICU internal only.
|
static GeneralMeasureFormat |
getInstance(ULocale locale,
FormatWidth length,
NumberFormat decimalFormat)
Deprecated.
This API is ICU internal only.
|
FormatWidth |
getLength()
Deprecated.
This API is ICU internal only.
|
ULocale |
getLocale()
Deprecated.
This API is ICU internal only.
|
int |
hashCode()
Deprecated.
This API is ICU internal only.
|
Measure |
parseObject(String toParse,
ParsePosition parsePosition)
Deprecated.
This API is ICU internal only.
|
clone, format, formatToCharacterIterator, parseObject
protected GeneralMeasureFormat(ULocale locale, FormatWidth style, Map<MeasureUnit,EnumMap<FormatWidth,Map<String,com.ibm.icu.text.GeneralMeasureFormat.PatternData>>> unitToStyleToCountToFormat, NumberFormat numberFormat)
public static GeneralMeasureFormat getInstance(ULocale locale, FormatWidth length)
locale
- locale of this time unit formatter.length
- the desired lengthpublic static GeneralMeasureFormat getInstance(ULocale locale, FormatWidth length, NumberFormat decimalFormat)
locale
- locale of this time unit formatter.length
- the desired lengthpublic static MeasureFormat getCurrencyFormat(ULocale locale)
locale
- desired localepublic static MeasureFormat getCurrencyFormat()
FORMAT
locale.public ULocale getLocale()
public FormatWidth getLength()
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
public StringBuffer format(Measure measure, StringBuffer toAppendTo, FieldPosition pos)
measure
- the measure to formattoAppendTo
- as in format(Object, StringBuffer, FieldPosition)
pos
- as in format(Object, StringBuffer, FieldPosition)
public StringBuffer format(StringBuffer toAppendto, FieldPosition pos, Measure... measures)
toAppendto
- as in format(Object, StringBuffer, FieldPosition)
pos
- as in format(Object, StringBuffer, FieldPosition)
measures
- a sequence of one or more measures.public String format(Measure... measures)
measures
- a sequence of one or more measures.public Measure parseObject(String toParse, ParsePosition parsePosition)
parseObject
in class Format
public boolean equals(Object obj)
Copyright (c) 2013 IBM Corporation and others.