Class Formatters


  • public class Formatters
    extends java.lang.Object
    Utility class for CellFormat.
    Author:
    henrichen
    • Constructor Summary

      Constructors 
      Constructor Description
      Formatters()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void format​(java.util.Locale locale, java.util.Formatter formatter, java.lang.String format, java.lang.Object... args)  
      static java.lang.String getCurrencySymbol​(java.util.Locale locale)
      Returns the getCurrencySymbol character of the current locale.
      static char getDecimalSeparator​(java.util.Locale locale)
      Returns the getDecimalSeparator character of the current locale.
      static char getGroupingSeparator​(java.util.Locale locale)
      Returns the GroupingSeparator character of the current locale.
      • Methods inherited from class java.lang.Object

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

      • Formatters

        public Formatters()
    • Method Detail

      • format

        public static void format​(java.util.Locale locale,
                                  java.util.Formatter formatter,
                                  java.lang.String format,
                                  java.lang.Object... args)
      • getGroupingSeparator

        public static char getGroupingSeparator​(java.util.Locale locale)
        Returns the GroupingSeparator character of the current locale.
        Returns:
        the GroupingSeparator character of the current locale.
      • getDecimalSeparator

        public static char getDecimalSeparator​(java.util.Locale locale)
        Returns the getDecimalSeparator character of the current locale.
        Returns:
        the getDecimalSeparator character of the current locale.
      • getCurrencySymbol

        public static java.lang.String getCurrencySymbol​(java.util.Locale locale)
        Returns the getCurrencySymbol character of the current locale.
        Returns:
        the getCurrencySymbol character of the current locale.