Interface ISingleConditionBuilder


  • public interface ISingleConditionBuilder
    Builder for configuring a single condition.
    Since:
    8.2.0
    • Method Detail

      • build

        SingleCondition build()
        Creates a new single condition with the current configuration. Changes to the builder after this method has been called will not affect the created condition.
        Returns:
        The created single condition.
      • contains

        default SingleCondition contains​(String lhs,
                                         String rhs)
        Sets up the condition so that the given left hand side must contain the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • doesNotEndWith

        default SingleCondition doesNotEndWith​(String lhs,
                                               String rhs)
        Sets up the condition so that the given left hand side must not end with the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • doesNotMatchRegExp

        default SingleCondition doesNotMatchRegExp​(String lhs,
                                                   String rhs)
        Sets up the condition so that the given left hand side must not match the given right hand side as a regular expression.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • doesNotStartWith

        default SingleCondition doesNotStartWith​(String lhs,
                                                 String rhs)
        Sets up the condition so that the given left hand side must not start with the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • endsWith

        default SingleCondition endsWith​(String lhs,
                                         String rhs)
        Sets up the condition so that the given left hand side must end with the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • equalTo

        default SingleCondition equalTo​(String lhs,
                                        String rhs)
        Sets up the condition so that the given left hand side must equal the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • greaterThan

        default SingleCondition greaterThan​(String lhs,
                                            String rhs)
        Sets up the condition so that the given left hand side must be greater than the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • greaterThanOrEqual

        default SingleCondition greaterThanOrEqual​(String lhs,
                                                   String rhs)
        Sets up the condition so that the given left hand side must be greater than or equal to the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • isEmpty

        default SingleCondition isEmpty​(String value)
        Sets up the condition so that the given value must be empty.
        Parameters:
        value - The value to check.
        Returns:
        This builder for chaining method calls.
      • isNotEmpty

        default SingleCondition isNotEmpty​(String value)
        Sets up the condition so that the given value must not be empty.
        Parameters:
        value - The value to check.
        Returns:
        This builder for chaining method calls.
      • lessThan

        default SingleCondition lessThan​(String lhs,
                                         String rhs)
        Sets up the condition so that the given left hand side must be less than the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • lessThanOrEqual

        default SingleCondition lessThanOrEqual​(String lhs,
                                                String rhs)
        Sets up the condition so that the given left hand side must be less than or equal to the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • lhs

        ISingleConditionBuilder lhs​(String lhs)
        Sets the left-hand side of the condition.
        Parameters:
        lhs - The left-hand side.
        Returns:
        This builder for chaining method calls.
      • matchCondition

        ISingleConditionBuilder matchCondition​(EMatchCondition matchCondition)
        Sets the match condition to use for the comparison, that compares the left-hand side and right-hand side.
        Parameters:
        matchCondition - The match condition.
        Returns:
        This builder for chaining method calls.
      • matchesRegExp

        default SingleCondition matchesRegExp​(String lhs,
                                              String rhs)
        Sets up the condition so that the given left hand side must match the given right hand side as a regular expression.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • notEqualTo

        default SingleCondition notEqualTo​(String lhs,
                                           String rhs)
        Sets up the condition so that the given left hand side must not equal the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • rhs

        ISingleConditionBuilder rhs​(String rhs)
        Sets the right-hand side of the condition.
        Parameters:
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • startsWith

        default SingleCondition startsWith​(String lhs,
                                           String rhs)
        Sets up the condition so that the given left hand side must start with the given right hand side.
        Parameters:
        lhs - The left-hand side.
        rhs - The right-hand side.
        Returns:
        This builder for chaining method calls.
      • variableName

        ISingleConditionBuilder variableName​(String variableName)
        Sets the variable name used when conditions are combined with a custom boolean expression. When not set, a default name is generated: c1, c2, c3, ...
        Parameters:
        variableName - The variable name.
        Returns:
        This builder for chaining method calls.