Interface ApproverDisjunction


public interface ApproverDisjunction
ApproverDisjunction
Example to create an instance using the builder pattern

     ApproverDisjunction approverDisjunction = ApproverDisjunction.builder()
             .plusOr(orBuilder -> orBuilder)
             .build()
 
  • Method Details

    • getOr

      @NotNull @Valid @NotNull @Valid List<RuleApprover> getOr()

      Any of the nested approvers must approve in order for the disjunction to be considered approved.

      Returns:
      or
    • setOr

      void setOr(RuleApprover... or)

      Any of the nested approvers must approve in order for the disjunction to be considered approved.

      Parameters:
      or - values to be set
    • setOr

      void setOr(List<RuleApprover> or)

      Any of the nested approvers must approve in order for the disjunction to be considered approved.

      Parameters:
      or - values to be set
    • of

      static ApproverDisjunction of()
      factory method
      Returns:
      instance of ApproverDisjunction
    • of

      factory method to create a shallow copy ApproverDisjunction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ApproverDisjunction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ApproverDisjunctionBuilder builder()
      builder factory method for ApproverDisjunction
      Returns:
      builder
    • builder

      create builder for ApproverDisjunction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withApproverDisjunction

      default <T> T withApproverDisjunction(Function<ApproverDisjunction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ApproverDisjunction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference