Just playing with the new lambda and functional features in Java 8 and I\'m not sure how to do this.
For example the following is valid:
Map<
example of passing a lambda containing a method
YourClass myObject = new YourClass();
// first parameter, second parameter and return
BiFunction YourFunction;
YourFunction = (k, v) -> v == null ? "ERROR your class object is null" : defaultHandler("hello",myObject);
public String defaultHandler(String message, YourClass Object)
{
//TODO ...
return "";
}