Class ApproverConjunctionDraftBuilder
- All Implemented Interfaces:
Builder<ApproverConjunctionDraft>
Example to create an instance using the builder pattern
ApproverConjunctionDraft approverConjunctionDraft = ApproverConjunctionDraft.builder()
.plusAnd(andBuilder -> andBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAll of the nested disjunctions must be approved in order for the conjunction to be considered approved.and
(ApproverDisjunctionDraft... and) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.and
(List<ApproverDisjunctionDraft> and) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.build()
builds ApproverConjunctionDraft with checking for non-null required valuesbuilds ApproverConjunctionDraft without checking for non-null required valuesgetAnd()
All of the nested disjunctions must be approved in order for the conjunction to be considered approved.of()
factory method for an instance of ApproverConjunctionDraftBuilderof
(ApproverConjunctionDraft template) create builder for ApproverConjunctionDraft instanceplusAnd
(ApproverDisjunctionDraft... and) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.All of the nested disjunctions must be approved in order for the conjunction to be considered approved.All of the nested disjunctions must be approved in order for the conjunction to be considered approved.All of the nested disjunctions must be approved in order for the conjunction to be considered approved.
-
Constructor Details
-
ApproverConjunctionDraftBuilder
public ApproverConjunctionDraftBuilder()
-
-
Method Details
-
and
All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Parameters:
and
- value to be set- Returns:
- Builder
-
and
All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Parameters:
and
- value to be set- Returns:
- Builder
-
plusAnd
All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Parameters:
and
- value to be set- Returns:
- Builder
-
plusAnd
public ApproverConjunctionDraftBuilder plusAnd(Function<ApproverDisjunctionDraftBuilder, ApproverDisjunctionDraftBuilder> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
withAnd
public ApproverConjunctionDraftBuilder withAnd(Function<ApproverDisjunctionDraftBuilder, ApproverDisjunctionDraftBuilder> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
addAnd
public ApproverConjunctionDraftBuilder addAnd(Function<ApproverDisjunctionDraftBuilder, ApproverDisjunctionDraft> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
setAnd
public ApproverConjunctionDraftBuilder setAnd(Function<ApproverDisjunctionDraftBuilder, ApproverDisjunctionDraft> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
getAnd
All of the nested disjunctions must be approved in order for the conjunction to be considered approved. The total count of approvers across the nested disjunctions must not exceed 10.
- Returns:
- and
-
build
builds ApproverConjunctionDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApproverConjunctionDraft>
- Returns:
- ApproverConjunctionDraft
-
buildUnchecked
builds ApproverConjunctionDraft without checking for non-null required values- Returns:
- ApproverConjunctionDraft
-
of
factory method for an instance of ApproverConjunctionDraftBuilder- Returns:
- builder
-
of
create builder for ApproverConjunctionDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-