Skip to content
Advertisement

Tag: functional-interface

When to use Functional Interface vs Function

I am using Java 11, and we have two ways of passing in functions as an argument. functional interface Function<T, Y> Now I am not able to find anything on when to use which one. I can figure that we can use a generic functional interface over a Function<T,Y> when we either don’t want to pass any arguments or have

Advertisement