| java.lang.Object java.text.Format javax.measure.MeasureFormat
MeasureFormat | abstract public class MeasureFormat extends Format (Code) | | This class provides the interface for formatting and parsing
Measure measures .
As a minimum, instances of this class should be able to parse/format
measure using
CompoundUnit .
author: Jean-Marie Dautelle version: 4.2, August 26, 2007 |
Field Summary | |
final static NumberUnit | DEFAULT |
Method Summary | |
public static MeasureFormat | getInstance() Returns the measure format for the default locale. | public static MeasureFormat | getInstance(NumberFormat numberFormat, UnitFormat unitFormat) Returns the measure format using the specified number format and
unit format (the number and unit are separated by a space).
Parameters: numberFormat - the number format. Parameters: unitFormat - the unit format. |
DEFAULT | final static NumberUnit DEFAULT(Code) | | |
getInstance | public static MeasureFormat getInstance()(Code) | | Returns the measure format for the default locale.
getInstance(Number.getInstance(), Unit.getInstance()) |
getInstance | public static MeasureFormat getInstance(NumberFormat numberFormat, UnitFormat unitFormat)(Code) | | Returns the measure format using the specified number format and
unit format (the number and unit are separated by a space).
Parameters: numberFormat - the number format. Parameters: unitFormat - the unit format. the corresponding format. |
|
|