Java 8 - Predefined Functional Interface
Predefined Functional Interface are, 1. Predicate 2. Function 3. Consumer 4. Supplier etc., These all are defined the package : java.util.function. Functional Interface: * A interface which contain must only one abstract method. * And It may contain multiple default method and static methods. eg. Comparable, Runnable etc., interface Predicate<T> { boolean test(T t); } test() - abstract method negate() - default method and() - default method or() - default method isEqual() - static method