• Ralph Lecessi


In Java 8, the java.util.function package was added to the Java API. It contains many functional interfaces designed to assist with functional programming. Predicate is a functional interface whose functional method, called test, evaluates a condition on an input variable of a generic type. Since the Predicate interface’s default methods return new Predicate objects, chains of predicates can be used to create complex logical expressions.

Copyright information

© Ralph Lecessi 2019

Authors and Affiliations

  • Ralph Lecessi
    • 1
  1. 1.Kendall ParkUSA

Personalised recommendations