Class DateTimeFormatterFactory.DateTimeFormatter

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DateTimeFormatter​(java.util.Locale locale, DateFormat df)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FormattedPlaceholder format​(java.lang.Object toFormat, java.util.Map<java.lang.String,​java.lang.Object> variableOptions)
      A method that takes the object to format and returns the i18n-aware formatted placeholder.
      java.lang.String formatToString​(java.lang.Object toFormat, java.util.Map<java.lang.String,​java.lang.Object> variableOptions)
      A method that takes the object to format and returns the i18n-aware string representation.
      • Methods inherited from class java.lang.Object

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

      • icuFormatter

        private final DateFormat icuFormatter
      • locale

        private final java.util.Locale locale
    • Constructor Detail

      • DateTimeFormatter

        private DateTimeFormatter​(java.util.Locale locale,
                                  DateFormat df)
    • Method Detail

      • format

        public FormattedPlaceholder format​(java.lang.Object toFormat,
                                           java.util.Map<java.lang.String,​java.lang.Object> variableOptions)
        A method that takes the object to format and returns the i18n-aware formatted placeholder.
        Specified by:
        format in interface Formatter
        Parameters:
        toFormat - the object to format.
        variableOptions - options that are not know at build time.
        Returns:
        the formatted placeholder.
      • formatToString

        public java.lang.String formatToString​(java.lang.Object toFormat,
                                               java.util.Map<java.lang.String,​java.lang.Object> variableOptions)
        A method that takes the object to format and returns the i18n-aware string representation.
        Specified by:
        formatToString in interface Formatter
        Parameters:
        toFormat - the object to format.
        variableOptions - options that are not know at build time.
        Returns:
        the formatted string.