8000 Optional · mangelo123/Java-Coding-Problems@71978f3 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 71978f3

Browse files
Optional
1 parent 2c1a4de commit 71978f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Chapter12/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Optional
1+
# Optional
22
This chapter includes 24 problems meant to draw several rules for working with **Optional**. The problems and solutions presented in this section
3-
are based on the Brian Goetz (Java’s language architect) definition: *Optional is intended to provide a limited mechanism for library method
4-
return types where there needed to be a clear way to represent “no result," and using null for such was overwhelmingly likely to cause errors.*
3+
are based on the Brian Goetz (Java’s language architect) definition: *Optional is intended to provide a limited mechanism for library method
4+
return types where there needed to be a clear way to represent “no result," and using null for such was overwhelmingly likely to cause errors.*
55
But, where there are rules there are exceptions as well. Therefore, do not conclude that the rules (or practices) presented here should be
6-
followed (or avoided) at all costs. Like always, it’s an it depends problem that requires to evaluate the situation and weight pros and cons.
6+
followed (or avoided) at all costs. Like always, it’s an it depends problem that requires to evaluate the situation and weight pros and cons.

0 commit comments

Comments
 (0)
0