Interface Parameter.SequenceBuilder

    • Method Detail

      • terminal

        Parameter.SequenceBuilder terminal()
        Sets that this sequence of parameters is optional, and will be ignored if it isn't specified - but will throw an error if this is passed something to parse that it cannot parse.
        Returns:
        This builder, for chaining
      • optional

        Parameter.SequenceBuilder optional()
        Sets that this parameter is weak optional and will be ignored if it cannot parse the next element(s).
        Returns:
        This builder, for chaining
      • then

        Parameter.SequenceBuilder then​(Parameter parameter)
        Defines the next parameter in the parameter sequence.
        Parameters:
        parameter - The parameter
        Returns:
        This builder, for chaining
      • then

        default Parameter.SequenceBuilder then​(Parameter @NonNull ... parameters)
        Adds a set of Parameters to this builder.

        The parameters will be parsed in the provided order.

        Parameters:
        parameters - The parameters to add
        Returns:
        This builder, for chaining
      • then

        default Parameter.SequenceBuilder then​(@NonNull java.lang.Iterable<Parameter> parameters)
        Adds a set of Parameters to this builder.

        The parameters will be parsed in the provided order.

        Parameters:
        parameters - The parameters to add
        Returns:
        This builder, for chaining