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
- Host: GitHub
- URL: https://github.com/darrmirr/fp_contract
- Owner: DarrMirr
- License: mit
- Created: 2020-12-08T11:58:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-05T20:03:45.000Z (about 5 years ago)
- Last Synced: 2025-05-14T16:17:38.264Z (11 months ago)
- Topics: fp, functional, functional-programming, functions, java, java-10, java-8, lambda-functions
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)