Primitive Type Specializations of Predicate – Functional-Style Programming
Primitive Type Specializations of Predicate<T> The functional interfaces IntPredicate, LongPredicate, and DoublePredicate evaluate predicates with int, long, and double arguments, respectively, avoiding the overhead of boxing and unboxing of primitive values (see Table 13.5). The primitive type versions are not subinterfaces of the Predicate<T> interface. Click here to view code image Predicate<Integer> isEven = i … Read morePrimitive Type Specializations of Predicate – Functional-Style Programming