Lambda Demos
Jump to navigation
Jump to search
Contents
Motivation
JDK 8 added lambdas to alleviate the bulkiness of anonymous inner classes. We use lambdas heavily in 231.
Background
Code To Investigate
async,finish
{{CodeToImplement|LambdasAsyncAndFinishExample|main|lambda.demo.asyncfinish}
{{CodeToImplement|AnonymousInnerClassesAsyncAndFinishExample|main|lambda.demo.asyncfinish}
{{CodeToImplement|NamedClassesAsyncAndFinishExample|main|lambda.demo.asyncfinish}
compute
{{CodeToImplement|LambdasMapComputeExample|main|lambda.demo.compute}
{{CodeToImplement|AnonymousInnerClassesMapComputeExample|main|lambda.demo.compute}
{{CodeToImplement|NamedClassesMapComputeExample|main|lambda.demo.compute}
user interface
{{Visualization|FxLambdaDemoApp|lambda.demo.viz}