Skip to the content.

8. PredicateBuilder methods

from(final Predicate<T> predicate)

Example:

private static Predicate<Child> isGirl() {
    return PredicateBuilder.from(not(nullValue())).and(instanceOf(Girl.class));
}