|
|
|
|
1
|
# ZCW-MicroLabs-Streams-And-Lambdas:<br>The Person Factory
|
1
|
# ZCW-MicroLabs-Streams-And-Lambdas:<br>The Person Factory
|
2
|
* **Purpose** - to demonstrate stream usage.
|
2
|
* **Purpose** - to demonstrate stream usage.
|
3
|
|
3
|
|
4
|
-# Part 1
|
|
|
|
|
4
|
+## Part 1
|
5
|
* **Note** - The `Person` class is a representation of a respective `Person` object.
|
5
|
* **Note** - The `Person` class is a representation of a respective `Person` object.
|
6
|
* **Objective** - to implement the following classes:
|
6
|
* **Objective** - to implement the following classes:
|
7
|
* `PersonFactory` - generates `Person` objects.
|
7
|
* `PersonFactory` - generates `Person` objects.
|
|
|
|
|
9
|
* `StreamFilter` - demonstrates filtering and converting between collection-types
|
9
|
* `StreamFilter` - demonstrates filtering and converting between collection-types
|
10
|
* `StreamMap` - demonstrates mapping and flatmapping
|
10
|
* `StreamMap` - demonstrates mapping and flatmapping
|
11
|
|
11
|
|
12
|
-# Part 2
|
|
|
|
|
12
|
+## Part 2
|
13
|
* **Objective** - to implement the following classes:
|
13
|
* **Objective** - to implement the following classes:
|
14
|
* `ArrayConverter` - demonstrates the conversion from `SomeType[]` to
|
14
|
* `ArrayConverter` - demonstrates the conversion from `SomeType[]` to
|
15
|
* list representation: `List<SomeType>`
|
15
|
* list representation: `List<SomeType>`
|