Package javax.measure

Class MeasureFormat

    • Constructor Detail

      • MeasureFormat

        public MeasureFormat()
    • 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​(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.