What is the difference between a Predicate and a Function Interface in Java8?
Difference between Predicate<T> and Function<T, R> First and foremost a Predicate<T> is strictly a boolean-valued function: _ _ _ _ _ _ _ | | T –> | predicate | –> boolean |_ _ _ _ _ _ _| Whereas this is not necessarily true for a Function<T, R>: _ _ _ _ _ _ … Read more