Interested in learning about elegant patterns that provide new ways to handle corner cases for data processing pipelines?
In this article, José Paumard explores several patterns that use Optional, a new Java SE 8 final class with a private constructor. This class provides alternatives for writing data processing pipelines built on streams, resulting in better and more-fluent code.
Paumard describes how to build optionals, explains why we need them, and demonstrates several patterns you can use in various scenarios. The first patterns use an optional as a wrapper object, which may or not have a value. The second patterns expose methods of the optional class.
To learn more, read the article.