Interface PredicateSpecification<T>

All Superinterfaces:
Serializable

public interface PredicateSpecification<T> extends Serializable
Specification in the sense of Domain Driven Design.

Specifications can be composed into higher order functions from other specifications using and(PredicateSpecification), or(PredicateSpecification) or factory methods such as allOf(Iterable). Composition considers whether one or more specifications contribute to the overall predicate by returning a Predicate or null. Specifications returning null are considered to not contribute to the overall predicate and their result is not considered in the final predicate.

Since:
4.0
Author:
Mark Paluch