Interface ParseService

    • Method Detail

      • parse

        default Items parse​(String arg)
        Parses a comma-delimited list of data elements.

        Some data elements might be key=value pairs, while others might be raw values (i.e., no equals sign).

        Parameters:
        arg - The string to parse.
        Returns:
        A parsed list of Items.
        Throws:
        IllegalArgumentException - If the string does not conform to expected syntax.
      • parse

        Items parse​(String arg,
                    boolean strict)
        Parses a comma-delimited list of data elements.

        Some data elements might be key=value pairs, while others might be raw values (i.e., no equals sign).

        Parameters:
        arg - The string to parse.
        strict - Whether to fail fast when encountering an unassigned variable token.
        Returns:
        A parsed list of Items.
        Throws:
        IllegalArgumentException - If the string does not conform to expected syntax.