Class CurrencyFormatter


  • public class CurrencyFormatter
    extends Formatter
    The CurrencyFormatter formats a value according to the currency format of the specified locale.
    • Constructor Summary

      Constructors 
      Constructor Description
      CurrencyFormatter()
      Create a new CurrencyFormatter with the format of the current locale
      CurrencyFormatter​(java.util.Locale loc)
      Create a new CurrencyFormatter with the format of the specified locale
    • Constructor Detail

      • CurrencyFormatter

        public CurrencyFormatter()
        Create a new CurrencyFormatter with the format of the current locale
      • CurrencyFormatter

        public CurrencyFormatter​(java.util.Locale loc)
        Create a new CurrencyFormatter with the format of the specified locale
    • Method Detail

      • format

        public java.lang.String format​(double in)
        Description copied from class: Formatter
        Return a String that is the formatted version of the input parameter.
        Specified by:
        format in class Formatter