Sep 9, 2018 · 1 min read
Then you should read Effective Java 3rd Edition by Joshua Bloch. Item #55 has some good guidelines for when to use Optional and when not to use it. Item #54 is similar in that it suggests avoiding returning null when the return type is a collection.