Package ch.frostnova.util.check

The Frostnova Check Framework offers a Check class for parameter/value validation using a rich and expandable set of utility functions.

Checks can be performed on:

Failing checks result in an IllegalArgumentException, with a meaningful message which check has failed, including the parameter name.
Example:

java.lang.IllegalArgumentException: 'customer id' must have at least 6 characters

Example usage:
Custom checks can be created with any implementation of the Verify functional interface. This interface also provides static methods to create implementations based on Predicate and predefined or dynamic failure messages.

Examples for custom validation:

Since:
27.05.2018.
Skip navigation links