Confused about java 8 lambda expression.
below is an old java way of implementation of functional interface method;
Function<Employee, Employee> employeeFunc=new Function<Employee,Employee>(){
public Employee apply(Employee f) {
return f;
}
};
Is this same as e->e
? Say e
is an Employee
.
what is happening when object->object
executes? please explain