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 ApproverDisjunctionBuilder
builder()
builder factory method for ApproverDisjunctionstatic ApproverDisjunctionBuilder
builder
(ApproverDisjunction template) create builder for ApproverDisjunction instancestatic ApproverDisjunction
deepCopy
(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 ApproverDisjunction
of()
factory methodstatic ApproverDisjunction
of
(ApproverDisjunction template) factory method to create a shallow copy ApproverDisjunctionvoid
setOr
(RuleApprover... or) Any of the nested approvers must approve in order for the disjunction to be considered approved.void
setOr
(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> T
withApproverDisjunction
(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
-
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
-