The Consumer Functional interface takes a single input and does not return anything. The consumer interface is located in java.util.function package. It has a Single Abstract Method (SAM) accept(), which accepts the generic object type T and doesn't return any result. … [Read more...]
Java Functional Interface – @FunctionalInterface Annotation
The Functional Interface is introduced in Java 8, and it is nothing but an interface with a Single Abstract Method (SAM). A functional interface can act as a target for a lambda expression or a method reference. … [Read more...]