All Downloads are FREE. Search and download functionalities are using the official Maven repository.

colesico.framework.validation.Validator Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
package colesico.framework.validation;

public interface Validator {

    /**
     * Validate a value.
     *
     * @param value
     * @return null if ok, ValidationIssue otherwise
     */
    ValidationIssue validate(V value);

    /**
     * Validates a value
     * If any erors throw Validation exception
     *
     * @param value
     * @throws ValidationException
     */
    void accept(V value) throws ValidationException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy