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

org.solidcoding.validation.api.ThrowingValidator Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package org.solidcoding.validation.api;

import java.util.function.Function;

interface ThrowingValidator {

    /**
     * @param throwableFunction the function defining the Exception that needs to be thrown when a rule is broken. The String is the stored failure message of the validation.
     * @param                the bound of the Exception that needs to be thrown when a rule is broken.
     * @return true if all rules pass.
     */
     R orElseThrow(Function throwableFunction);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy