Class StringFormatter

    • Constructor Detail

      • StringFormatter

        public StringFormatter()
        Create a new string formatter.
    • Method Detail

      • format

        public String format​(String value)
        Description copied from interface: Formatter
        Format a value by converting it to a string.
        Specified by:
        format in interface Formatter<String>
        Parameters:
        value - The value to format
        Returns:
        A formatted string
      • parseString

        public String parseString​(String value)
        Description copied from interface: Formatter
        Parse a string and return a value of the correct type. A null input string should (unless otherwise documented by a specific formatter implementation) be allowed and may return null or any other "default" value.
        Specified by:
        parseString in interface Formatter<String>
        Parameters:
        value - The string to parse
        Returns:
        An object