Class BooleanFormatter


  • public class BooleanFormatter
    extends Object
    Formatter of boolean values using BooleanLocale.
    • Constructor Detail

      • BooleanFormatter

        public BooleanFormatter()
    • Method Detail

      • format

        public static String format​(boolean trueFalse,
                                    String formatString)
        Formats boolean value with format based on BooleanLocale with default ICU locale and additional settings in selected V8 format string.
        Parameters:
        trueFalse - the boolean
        locale - the locale
        Returns:
        formatted boolean
      • format

        public static String format​(boolean trueFalse,
                                    com.ibm.icu.util.ULocale locale)
        Formats boolean value with BooleanLocale with selected ICU locale.
        Parameters:
        trueFalse - the boolean
        locale - the locale
        Returns:
        formatted boolean