Lambda Demos

From CSE231 Wiki
Revision as of 18:45, 28 February 2018 by Cosgroved (talk | contribs) (Created page with "=Motivation= JDK 8 added lambdas to alleviate the bulkiness of anonymous inner classes. We use lambdas heavily in 231. =Background= [https://docs.oracle.com/javase/tutorial/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Motivation

JDK 8 added lambdas to alleviate the bulkiness of anonymous inner classes. We use lambdas heavily in 231.

Background

Lambda Expressions

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}