Class ApproverDisjunctionBuilder
- All Implemented Interfaces:
Builder<ApproverDisjunction>
Example to create an instance using the builder pattern
ApproverDisjunction approverDisjunction = ApproverDisjunction.builder()
.plusOr(orBuilder -> orBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOr
(Function<RuleApproverBuilder, RuleApprover> builder) Any of the nested approvers must approve in order for the disjunction to be considered approved.build()
builds ApproverDisjunction with checking for non-null required valuesbuilds ApproverDisjunction without checking for non-null required valuesgetOr()
Any of the nested approvers must approve in order for the disjunction to be considered approved.static ApproverDisjunctionBuilder
of()
factory method for an instance of ApproverDisjunctionBuilderstatic ApproverDisjunctionBuilder
of
(ApproverDisjunction template) create builder for ApproverDisjunction instanceor
(RuleApprover... or) Any of the nested approvers must approve in order for the disjunction to be considered approved.or
(List<RuleApprover> or) Any of the nested approvers must approve in order for the disjunction to be considered approved.plusOr
(RuleApprover... or) Any of the nested approvers must approve in order for the disjunction to be considered approved.plusOr
(Function<RuleApproverBuilder, RuleApproverBuilder> builder) Any of the nested approvers must approve in order for the disjunction to be considered approved.setOr
(Function<RuleApproverBuilder, RuleApprover> builder) Any of the nested approvers must approve in order for the disjunction to be considered approved.withOr
(Function<RuleApproverBuilder, RuleApproverBuilder> builder) Any of the nested approvers must approve in order for the disjunction to be considered approved.
-
Constructor Details
-
ApproverDisjunctionBuilder
public ApproverDisjunctionBuilder()
-
-
Method Details
-
or
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
or
- value to be set- Returns:
- Builder
-
or
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
or
- value to be set- Returns:
- Builder
-
plusOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
or
- value to be set- Returns:
- Builder
-
plusOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
withOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
addOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
setOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
getOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Returns:
- or
-
build
builds ApproverDisjunction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApproverDisjunction>
- Returns:
- ApproverDisjunction
-
buildUnchecked
builds ApproverDisjunction without checking for non-null required values- Returns:
- ApproverDisjunction
-
of
factory method for an instance of ApproverDisjunctionBuilder- Returns:
- builder
-
of
create builder for ApproverDisjunction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-