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