Interface VariableValueParameters.LiteralBuilder<T>

    • Method Detail

      • literal

        VariableValueParameters.LiteralBuilder<T> literal​(java.util.function.Supplier<? extends java.util.Collection<java.lang.String>> literalSupplier)
        Sets a Supplier that provides the sequence of strings that need to be matched at runtime.

        Consumers of the API should supply an ordered collection.

        Parameters:
        literalSupplier - The Supplier
        Returns:
        This builder, for chaining
      • literal

        default VariableValueParameters.LiteralBuilder<T> literal​(java.util.Collection<java.lang.String> literal)
        Sets the sequence of strings that need to be matched at runtime.

        Consumers of the API should supply an ordered collection.

        Parameters:
        literal - The sequence of elements
        Returns:
        This builder, for chaining
      • returnValue

        VariableValueParameters.LiteralBuilder<T> returnValue​(java.util.function.Supplier<T> returnValueSupplier)
        Sets a Supplier that provides the object to return if this parameter parses correctly.
        Parameters:
        returnValueSupplier - The Supplier
        Returns:
        This builder, for chaining
      • returnValue

        default VariableValueParameters.LiteralBuilder<T> returnValue​(T returnValue)
        Sets the object to return if this parameter parses correctly.
        Parameters:
        returnValue - The Object
        Returns:
        This builder, for chaining