Class ApproverDisjunctionDraftBuilder
- All Implemented Interfaces:
Builder<ApproverDisjunctionDraft>
Example to create an instance using the builder pattern
ApproverDisjunctionDraft approverDisjunctionDraft = ApproverDisjunctionDraft.builder()
.plusOr(orBuilder -> orBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAny of the nested approvers must approve in order for the disjunction to be considered approved.build()
builds ApproverDisjunctionDraft with checking for non-null required valuesbuilds ApproverDisjunctionDraft without checking for non-null required valuesgetOr()
Any of the nested approvers must approve in order for the disjunction to be considered approved.of()
factory method for an instance of ApproverDisjunctionDraftBuilderof
(ApproverDisjunctionDraft template) create builder for ApproverDisjunctionDraft instanceor
(RuleApproverDraft... or) Any of the nested approvers must approve in order for the disjunction to be considered approved.or
(List<RuleApproverDraft> or) Any of the nested approvers must approve in order for the disjunction to be considered approved.plusOr
(RuleApproverDraft... or) Any of the nested approvers must approve in order for the disjunction to be considered approved.Any of the nested approvers must approve in order for the disjunction to be considered approved.Any of the nested approvers must approve in order for the disjunction to be considered approved.Any of the nested approvers must approve in order for the disjunction to be considered approved.
-
Constructor Details
-
ApproverDisjunctionDraftBuilder
public ApproverDisjunctionDraftBuilder()
-
-
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
public ApproverDisjunctionDraftBuilder plusOr(Function<RuleApproverDraftBuilder, RuleApproverDraftBuilder> builder) 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
public ApproverDisjunctionDraftBuilder withOr(Function<RuleApproverDraftBuilder, RuleApproverDraftBuilder> builder) 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
public ApproverDisjunctionDraftBuilder addOr(Function<RuleApproverDraftBuilder, RuleApproverDraft> builder) 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
public ApproverDisjunctionDraftBuilder setOr(Function<RuleApproverDraftBuilder, RuleApproverDraft> builder) 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 ApproverDisjunctionDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApproverDisjunctionDraft>
- Returns:
- ApproverDisjunctionDraft
-
buildUnchecked
builds ApproverDisjunctionDraft without checking for non-null required values- Returns:
- ApproverDisjunctionDraft
-
of
factory method for an instance of ApproverDisjunctionDraftBuilder- Returns:
- builder
-
of
create builder for ApproverDisjunctionDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-