An open API service indexing awesome lists of open source software.

https://github.com/darrmirr/fp_contract

Java implementation of Contract function
https://github.com/darrmirr/fp_contract

fp functional functional-programming functions java java-10 java-8 lambda-functions

Last synced: 11 months ago
JSON representation

Java implementation of Contract function

Awesome Lists containing this project

README

          

# Contract function
Java implementation of contract function

Contract function is function that applied to input value before one is passed to target function.
Where target function is function wrapped by Contract one. Target function is not invoked if contract evaluates false.

This code is part my article at [medium.com](https://darrmirr.medium.com/protect-function-from-illegal-input-value-8dcfe3c33c37)