Skip to content

Commit bae6ddc

Browse files
Feature: Added notes in Optional section in readme file.
1 parent eb26bcc commit bae6ddc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ Similarly, a BiFunction _incrementByOneAndMultiplyBiFunction_ is also created wh
108108

109109
## Explanation Optional
110110

111+
A container object which may or may not contain a non-null value. It contains several methods such as _isPresent()_ and _get()_. If a value is present, _isPresent()_ will return true and _get()_ will return the value.
112+
113+
Additional methods that depend on the presence or absence of a contained value are provided, such as _orElse()_ (return a default value if value not present) and _ifPresent()_ (execute a block of code if the value is present).
114+
111115
- Add a picture linking imperative and declarative approach together.
112116

113117
## Explanation Predicate

0 commit comments

Comments
 (0)