Interface FromStringParser<T>

    • Method Detail

      • parse

        T parse​(String string)
        Parses the given String to the type handled by this parser but efficiently returns null if the syntax does not match. This allows to detect the format without wasting much performance.
        Parameters:
        string - the String to parse. May or may not be in the format expected for the type of this parser.
        Returns:
        the given String parsed to the type handled by this parser or null if the syntax does not match.