public abstract class MeasureFormat extends java.text.Format
This class provides the interface for formatting and parsing measures
.
As a minimum, instances of this class should be able to parse/format
measure using CompoundUnit
.
Constructor and Description |
---|
MeasureFormat() |
Modifier and Type | Method and Description |
---|---|
static MeasureFormat |
getInstance()
Returns the measure format for the default locale.
|
static MeasureFormat |
getInstance(java.text.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).
|
public MeasureFormat()
public static MeasureFormat getInstance()
getInstance(Number.getInstance(), Unit.getInstance())
public static MeasureFormat getInstance(java.text.NumberFormat numberFormat, UnitFormat unitFormat)
numberFormat
- the number format.unitFormat
- the unit format.