Class ApproverConjunctionBuilder
- All Implemented Interfaces:
Builder<ApproverConjunction>
Example to create an instance using the builder pattern
ApproverConjunction approverConjunction = ApproverConjunction.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
(ApproverDisjunction... and) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.and
(List<ApproverDisjunction> and) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.build()
builds ApproverConjunction with checking for non-null required valuesbuilds ApproverConjunction without checking for non-null required valuesgetAnd()
All of the nested disjunctions must be approved in order for the conjunction to be considered approved.static ApproverConjunctionBuilder
of()
factory method for an instance of ApproverConjunctionBuilderstatic ApproverConjunctionBuilder
of
(ApproverConjunction template) create builder for ApproverConjunction instanceplusAnd
(ApproverDisjunction... 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
-
ApproverConjunctionBuilder
public ApproverConjunctionBuilder()
-
-
Method Details
-
and
All of the nested disjunctions must be approved in order for the conjunction to be considered approved.
- 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.
- 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.
- Parameters:
and
- value to be set- Returns:
- Builder
-
plusAnd
public ApproverConjunctionBuilder plusAnd(Function<ApproverDisjunctionBuilder, ApproverDisjunctionBuilder> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.
- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
withAnd
public ApproverConjunctionBuilder withAnd(Function<ApproverDisjunctionBuilder, ApproverDisjunctionBuilder> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.
- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
addAnd
public ApproverConjunctionBuilder addAnd(Function<ApproverDisjunctionBuilder, ApproverDisjunction> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.
- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
setAnd
public ApproverConjunctionBuilder setAnd(Function<ApproverDisjunctionBuilder, ApproverDisjunction> builder) All of the nested disjunctions must be approved in order for the conjunction to be considered approved.
- 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.
- Returns:
- and
-
build
builds ApproverConjunction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApproverConjunction>
- Returns:
- ApproverConjunction
-
buildUnchecked
builds ApproverConjunction without checking for non-null required values- Returns:
- ApproverConjunction
-
of
factory method for an instance of ApproverConjunctionBuilder- Returns:
- builder
-
of
create builder for ApproverConjunction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-