Interface RequiredCaseRule.Builder

    • Method Detail

      • conditions

        RequiredCaseRule.Builder conditions​(Collection<BooleanCondition> conditions)

        List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.

        Parameters:
        conditions - List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • conditions

        RequiredCaseRule.Builder conditions​(BooleanCondition... conditions)

        List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.

        Parameters:
        conditions - List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultValue

        RequiredCaseRule.Builder defaultValue​(Boolean defaultValue)

        The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.

        Parameters:
        defaultValue - The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.
        Returns:
        Returns a reference to this object so that method calls can be chained together.