Interface ApproverDisjunction
public interface ApproverDisjunction
ApproverDisjunction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApproverDisjunction approverDisjunction = ApproverDisjunction.builder()
.plusOr(orBuilder -> orBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApproverDisjunctionBuilderbuilder()builder factory method for ApproverDisjunctionstatic ApproverDisjunctionBuilderbuilder(ApproverDisjunction template) create builder for ApproverDisjunction instancecopyDeep()static ApproverDisjunctiondeepCopy(ApproverDisjunction template) factory method to create a deep copy of ApproverDisjunction@NotNull @Valid List<RuleApprover>getOr()Any of the nested approvers must approve in order for the disjunction to be considered approved.static ApproverDisjunctionof()factory methodstatic ApproverDisjunctionof(ApproverDisjunction template) factory method to create a shallow copy ApproverDisjunctionvoidsetOr(RuleApprover... or) Any of the nested approvers must approve in order for the disjunction to be considered approved.voidsetOr(List<RuleApprover> or) Any of the nested approvers must approve in order for the disjunction to be considered approved.static com.fasterxml.jackson.core.type.TypeReference<ApproverDisjunction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithApproverDisjunction(Function<ApproverDisjunction, T> helper) accessor map function
-
Method Details
-
getOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Returns:
- or
-
setOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
or- values to be set
-
setOr
Any of the nested approvers must approve in order for the disjunction to be considered approved.
- Parameters:
or- values to be set
-
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
-
copyDeep
ApproverDisjunction copyDeep() -
deepCopy
factory method to create a deep copy of ApproverDisjunction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
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
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-