Class AssertionPredicate.And<T>

java.lang.Object
org.apache.juneau.assertions.AssertionPredicate<T>
org.apache.juneau.assertions.AssertionPredicate.And<T>
Type Parameters:
T - the type of input being tested.
All Implemented Interfaces:
Predicate<T>
Enclosing class:
AssertionPredicate<T>

public static class AssertionPredicate.And<T> extends AssertionPredicate<T>
Encapsulates multiple predicates into a single AND operation.

Similar to stream(predicates).reduce(x->true, Predicate::and) but provides for AssertionPredicate.getFailureMessage() to return a useful message.