diff options
| author | Kwok Wha Chui <kwchui@sogyo.nl> | 2018-10-22 10:09:57 +0200 |
|---|---|---|
| committer | Kwok Wha Chui <kwchui@sogyo.nl> | 2018-10-22 10:09:57 +0200 |
| commit | d8a3df065ddc3e4712be56f664730ecbb59ede95 (patch) | |
| tree | 476edee1e86ba3460acb9cdef4481de5f22022c3 /src/main/java/nl/sogyo/javaopdrachten | |
| parent | 84ed81f8e79b11fbfe3b7526940dd2804e16f1c2 (diff) | |
| parent | 6bef440ef83b18a414a3c3839776c0afc3b15f85 (diff) | |
Java-specifieke uitleg over profiling in de repository gezet
See merge request academy-opdrachten/leren-programmeren/java-opdrachten-code!764
Diffstat (limited to 'src/main/java/nl/sogyo/javaopdrachten')
| -rw-r--r-- | src/main/java/nl/sogyo/javaopdrachten/profiling/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/nl/sogyo/javaopdrachten/profiling/README.md b/src/main/java/nl/sogyo/javaopdrachten/profiling/README.md new file mode 100644 index 0000000..5d213db --- /dev/null +++ b/src/main/java/nl/sogyo/javaopdrachten/profiling/README.md @@ -0,0 +1,9 @@ +h1. Profiling + +The assignments for profiling (A and B in the intermediate track) are on the academy website. This readme contains a few hints to start searching. + +The general documentation is at https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html. + +Java uses `Streams` to allow lazy evaluation. You can chain operations on a stream without evaluating the result. All applied operations are evaluated element-wise when the stream is iterated (consumed). An operation on a stream is given by a function call on the stream that tells the stream what to do with each element (e.g. `filter` or `map`). The input for those functions is another function that meets the required interface. For example `filter` requires a function that accepts an element from the stream and returns a `boolean`. This interface is called a `Predicate<T>`, where `T` is the element type of the stream. + +For assignment 1, you will need a `Predicate`. Assignment 2 focusses on `Function`. You might want to read about `Consumer`s for assignment 3. For assignments 4 and 5, you are on your own.
\ No newline at end of file |
