A functional interface is an interface with only one abstract method. I would like to talk to you about the various categories of functional interfaces most used and known. […]
Tag: Java 8
Java 8 Lambda expressions and functional interfaces
To talk about lambda functions and functional programming we must first talk about functional interfaces. A functional interface is an interface with one and only one abstract method. They have a special relationship with lambda expressions.From Java 8 we can find many functional interfaces in java.util.function package. A functional interface […]
Optionals in Streams for Java
Optionals are the Java’s way to make sure something comes out of streams, even in those cases where there may not be a result.The reason for their existence, their “raison d’ĂȘtre” is that, when a return value is defined in a method, that method must necessarily return something. Use Optionals […]