Class ISOTimeOfDayFormatter

  • All Implemented Interfaces:
    TokenFormatter

    public class ISOTimeOfDayFormatter
    extends Object
    A formatter representing time token values using only the time portion, using ISO 8601 conventions. Date information is lost by this formatting.
    • Constructor Detail

      • ISOTimeOfDayFormatter

        public ISOTimeOfDayFormatter()
        Creates a new formatter. Null values are output as the empty string.
      • ISOTimeOfDayFormatter

        public ISOTimeOfDayFormatter​(String nullIndicator)
        Creates a new formatter. Null values are output as the specified string.
        Parameters:
        nullIndicator - the text value to use for null values
    • Method Detail

      • setSource

        public final void setSource​(ScalarValued source)
        Description copied from interface: TokenFormatter
        Sets the container holding values to be formatted. A reference to this container is held and accessed only when an formatting is requested.
        Specified by:
        setSource in interface TokenFormatter
        Parameters:
        source - the value container to format
      • format

        public final String format()
        Description copied from interface: TokenFormatter
        Formats the current value of the source as a text value.
        Specified by:
        format in interface TokenFormatter
        Returns:
        the value of the source as a string