Code example for Predicate

Methods: apply

0
        return filter(m) ? m : null;
    } 
 
    protected boolean filter(M m) {
        if (p != null)
            return p.apply(m);
        throw new UnsupportedOperationException();
    } 
}