javax.measure
Class MeasureFormat
- java.lang.Object
-
- java.text.Format
-
- javax.measure.MeasureFormat
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public abstract class MeasureFormat extends java.text.FormatThis 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MeasureFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static MeasureFormatgetInstance()Returns the measure format for the default locale.static MeasureFormatgetInstance(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).
-
-
-
Method Detail
-
getInstance
public static MeasureFormat getInstance()
Returns the measure format for the default locale.- Returns:
getInstance(Number.getInstance(), Unit.getInstance())
-
getInstance
public 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).- Parameters:
numberFormat- the number format.unitFormat- the unit format.- Returns:
- the corresponding format.
-
-
DMelt 3.0 © DataMelt by jWork.ORG