org.solidcoding.validation.predicates.GenericPredicate 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.predicates;
import java.util.function.Predicate;
public interface GenericPredicate extends Predicate {
/**
* @param rule the custom predicate to test against properties of T.
* @return ObjectPredicate to continue adding rules.
*/
Predicate where(Predicate rule);
}