org.solidcoding.validation.api.ValidationBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of solidcoding-validation Show documentation
Show all versions of solidcoding-validation Show documentation
A small package that enables validation of (business) rules through a fluent API.
package org.solidcoding.validation.api;
import java.util.Collection;
public interface ValidationBuilder {
/**
* @param rule the rule which the value needs to comply with.
* @return the Validator to add more rules.
*/
ContinuingValidator compliesWith(Rule rule);
/**
* @param rules the rules which the value needs to comply with.
* @return the Validator to add more rules.
*/
ContinuingValidator compliesWith(Collection> rules);
}