Module 10: Functional Programming and Streams
Built-in Functional Interfaces
Meet Predicate, Function, Consumer, Supplier, and friends.
Predicate<T> exposes test; Function<T,R> maps values; Consumer<T> performs side effects.
Bi versions accept two parameters; UnaryOperator and BinaryOperator specialize Functions for identical types.
Compose functions with andThen, compose, and negate for reusable logic.