8. PredicateBuilder methods
from(final Predicate<T> predicate)
Example:
private static Predicate<Child> isGirl() {
return PredicateBuilder.from(not(nullValue())).and(instanceOf(Girl.class));
}
from(final Predicate<T> predicate)
Example:
private static Predicate<Child> isGirl() {
return PredicateBuilder.from(not(nullValue())).and(instanceOf(Girl.class));
}