Java 11 Cookbook
上QQ阅读APP看书,第一时间看更新

Using the utility class Objects

In this recipe, you will learn how the java.util.Objects utility class allows for the better processing of objects related functionality related to object comparison, calculating a hash value, and checking for null. It was a long time coming, as the programmers wrote the same code for checking an object for null again and again.