Predicates – Functional-Style Programming
13.6 Predicates The Predicate<T> interface should be familiar by now, having been used earlier in Example 13.1, Example 13.2, and Example 13.3. The Predicate<T> interface defines a boolean-valued function in terms of an instance of its type parameter T. From Table 13.5, we see that its functional method test() has the type T -> boolean—that … Read morePredicates – Functional-Style Programming