org.solidcoding.validation.api.Define 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.function.Predicate;
public final class Define {
private Define() {
}
public static RuleBuilder thatIt(Predicate rule) {
return new RuleDefinitionBuilder<>(rule);
}
}