Negate a Predicate Method Reference with Java 11 1. Overview In this short tutorial, we’ll see how to negate a Predicate method reference using Java 11. We’ll start with the limitations encountered in order to achieve this before Java 11. Then we’ll see how the Predicate.not() method helps, as well. 2. Before… Continue Reading java-negate-predicate-method-reference

Transforming an Empty String into an Empty Optional 1. Introduction In this quick tutorial, we’ll present different ways to transform a null or empty String into an empty Optional. Getting an empty Optional out of null is straightforward — we just use Optional.ofNullable(). But, what if we want empty Strings to work… Continue Reading java-empty-string-to-empty-optional