Documentation API of the 'org.jscience.physics.amount.AmountFormat' Java class

Class AmountFormat

  • public abstract class AmountFormatextends javolution.text.TextFormat<Amount<?>>

    This class provides the interface for formatting and parsing measures instances. For example:

         // Display measurements using unscaled units (e.g. base units or alternate units).     AmountFormat.setInstance(new AmountFormat() { // Context local.         public Appendable format(Amount m, Appendable a) throws IOException {             Unit u = m.getUnit();             if (u instanceof TransformedUnit)                   u = ((TransformedUnit)u).getParentUnit();             return AmountFormat.getPlusMinusErrorInstance(2).format(, a);         }         public Amount parse(CharSequence csq, Cursor c) {             return AmountFormat.getPlusMinusErrorInstance(2).parse(csq, c);         }     });

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.