(Dustin Marx) JDK 9 added some new methods to the Objects class including two static methods highlighted in this post: requireNonNullElse(T,T) and requireNonNullElseGet(T obj,Supplier extends T> supplier).
/membership]
Read More (Community content)