You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is created which nothing as input and delivers a String as output. In the main method, the supplier is called via __get() function__.
198
+
199
+
**Reference:** The source code for the Supplier is present in [_Supplier.java](https://github.com/syedumerahmedcode/java-functional-programming/blob/master/src/main/java/com/umer/javafunctional/functionalinterface/_Supplier.java) class.
200
+
185
201
- Add a picture linking imperative and declarative approach together.
Copy file name to clipboardExpand all lines: notes.md
-4
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,6 @@
5
5
Some methods used in the project:
6
6
7
7
8
-
9
-
10
-
-**Supplier<T>**: Represents a supplier of results.
11
-
12
8
These are coming from Stream API.
13
9
-**map()**: Used for the transformation of an object. It returns a stream consisting of the results of applying the given function to the elements of this stream. What is returned depends on how the function is implemented inside map method.
14
10
-**collect()**: Performs some kind of reduction operation on the elements of the stream. In our case, we are using Collector API from Stream.
0 commit comments