Package helpers

Class Formatter


  • public class Formatter
    extends java.lang.Object
    Utility class for formatting strings
    Author:
    gabrieleromanato
    • Constructor Summary

      Constructors 
      Constructor Description
      Formatter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String formatCurrency​(double amount, java.util.Locale locale)
      Formats an amount to a specific locale string
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Formatter

        public Formatter()
    • Method Detail

      • formatCurrency

        public static java.lang.String formatCurrency​(double amount,
                                                      java.util.Locale locale)
        Formats an amount to a specific locale string
        Parameters:
        amount -
        locale -
        Returns:
        String