Java In A Nutshell— Function Interfaces, Lambdas and Method References

Introduction

let n = (param1) => someOperation(param1);
n();

Creating a Function Interface

Utilising a Lambda

So lambdas are just method declaration and implementation references?

// :: denotes we're referencing a method
FunctionInterfaceStaticType name = Class::methodName;

Built in Functional Interfaces

Predicates

Functions

Suppliers

Consumers

Comparators

Additional Function Interfaces

Bi Functional Interfaces

Function<Param Type, Return Type>
BiFunction<Param t1, Param t2, return t>

Working with Primitives

Final

I'm just a self taught developer from England, honestly, that's it lol.