Difference between revisions of "Lambda Demos"
Jump to navigation
Jump to search
(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/...") |
|||
Line 7: | Line 7: | ||
=Code To Investigate= | =Code To Investigate= | ||
==async,finish== | ==async,finish== | ||
− | {{CodeToImplement|LambdasAsyncAndFinishExample|main|lambda.demo.asyncfinish} | + | {{CodeToImplement|LambdasAsyncAndFinishExample|main|lambda.demo.asyncfinish}} |
− | {{CodeToImplement|AnonymousInnerClassesAsyncAndFinishExample|main|lambda.demo.asyncfinish} | + | {{CodeToImplement|AnonymousInnerClassesAsyncAndFinishExample|main|lambda.demo.asyncfinish}} |
− | {{CodeToImplement|NamedClassesAsyncAndFinishExample|main|lambda.demo.asyncfinish} | + | {{CodeToImplement|NamedClassesAsyncAndFinishExample|main|lambda.demo.asyncfinish}} |
==compute== | ==compute== | ||
− | {{CodeToImplement|LambdasMapComputeExample|main|lambda.demo.compute} | + | {{CodeToImplement|LambdasMapComputeExample|main|lambda.demo.compute}} |
− | {{CodeToImplement|AnonymousInnerClassesMapComputeExample|main|lambda.demo.compute} | + | {{CodeToImplement|AnonymousInnerClassesMapComputeExample|main|lambda.demo.compute}} |
− | {{CodeToImplement|NamedClassesMapComputeExample|main|lambda.demo.compute} | + | {{CodeToImplement|NamedClassesMapComputeExample|main|lambda.demo.compute}} |
==user interface== | ==user interface== | ||
− | {{Visualization|FxLambdaDemoApp|lambda.demo.viz} | + | {{Visualization|FxLambdaDemoApp|lambda.demo.viz}} |
Revision as of 18:46, 28 February 2018
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
class: | LambdasAsyncAndFinishExample.java | |
methods: | main | |
package: | lambda.demo.asyncfinish | |
source folder: | student/src/main/java |
class: | AnonymousInnerClassesAsyncAndFinishExample.java | |
methods: | main | |
package: | lambda.demo.asyncfinish | |
source folder: | student/src/main/java |
class: | NamedClassesAsyncAndFinishExample.java | |
methods: | main | |
package: | lambda.demo.asyncfinish | |
source folder: | student/src/main/java |
compute
class: | LambdasMapComputeExample.java | |
methods: | main | |
package: | lambda.demo.compute | |
source folder: | student/src/main/java |
class: | AnonymousInnerClassesMapComputeExample.java | |
methods: | main | |
package: | lambda.demo.compute | |
source folder: | student/src/main/java |
class: | NamedClassesMapComputeExample.java | |
methods: | main | |
package: | lambda.demo.compute | |
source folder: | student/src/main/java |