Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 226 Bytes

8-predicate-builder.md

File metadata and controls

13 lines (10 loc) · 226 Bytes

8. PredicateBuilder methods

from(final Predicate<T> predicate)

Example:

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