Class NumFormatter.ToStringFormat

    • Constructor Detail

      • ToStringFormat

        public ToStringFormat()
    • Method Detail

      • format

        public Object format​(TemplateNode location,
                             Object value)
        Description copied from interface: Format
        Will only be called for supported values.
        Parameters:
        location - gives some additional information to this call like the target encoding
        value - will be turned into character data
        Returns:
        value as character data. So either a String, a StringBuilder or EncodedData
      • supports

        public boolean supports​(Object value)
        Description copied from interface: Format
        Many formats only apply to a special type or even specific values. The format method will only be called for supported values