Skip to main content

Joe Darcy: java.util.Objects and friends

Joe Darcy posted java.util.Objects and friends:

A small project I worked on during JDK 7 milestones 05 and 06 was the introduction of a java.util.Objects class to serve as a home for static utility methods operating on general objects
( title="Add shared two argument static equals method to the platform">6797535, title="Add nonNull methods to java.util.Objects">6889858, title="More methods for java.util.Objects: deepEquals, hash, toString with default">6891113). Those utilities include null-safe or null-tolerant methods for
comparing two objects,
computing the hash code of an object,
and returning a string for an object, operations generally relating to the methods defined on java.lang.Object...

Community: OpenJDK