Lambda

Lambda

Functional interfaces

  • A funcational interface contains exactly one abstract method
  • A functional interface can have one or more default methods

Example of a Predicate

Implementing a predicate lambda

Example of a custom functional interface

Implementation of the CalculatorInterface: