Package org.approvej.approve
Interface Approver
- All Superinterfaces:
Consumer<String>,Function<String,ApprovalResult>
- All Known Implementing Classes:
FileApprover,InplaceApprover
A
Consumer that approved a printed value and (optionally) stores the value in some
fashion if approved for a later execution.-
Method Summary
-
Method Details
-
accept
Deprecated, for removal: This API element is subject to removal in a future version.useFunction.apply(Object)to get anApprovalResultand (optionally) callApprovalResult.throwIfNotApproved()to achieve the same outcome.Approves a received value against a previously approved value.- Specified by:
acceptin interfaceConsumer<String>- Parameters:
received- the received value- Throws:
ApprovalError- if the received value was not approved
-
Function.apply(Object)to get anApprovalResultand (optionally) callApprovalResult.throwIfNotApproved()to achieve the same outcome.