More about Java 9 – this time: Optional. We’ll see how the new methods ‘stream()’, ‘or()’, and ‘ifPresentOrElse()’ considerably improve its API.
Stephen Colebourne presented his pragmatic approach to using Optional. I argue for a stricter one that gets us further without considerable downsides.
Proposal to implement new casting methods on Java’s Class. They aim to fulfill the need for improved ways to cast which was created by Java 8’s Optional and Stream.
A summary of why you can’t serialize Optional and what can be done to deal with that limitation if necessary.
Discussing the reasons for not making Java 8’s new type Optional serializable.
A digest of how Optional was introduced in Java 8, summarizing the many discussions about it and their key points based on the mail archive of JSR-335.
Write intention revealing code with Java 8’s new type Optional and prevent most NPEs. This is not optional!