Minor. Simplified, reformatted, got rid of warnings.
Supported SAM constructor calls without function literal.
Simplified code.
Minor. Simplified, reformatted, got rid of warnings.
Extracted method.
Added examples in code.