What methods should go into a java.util.Objects class in JDK 7?

Martin Buchholz martinrb at google.com
Wed Sep 9 17:15:48 PDT 2009

Here's a bunch of static hashCode methods for primitives:


This doesn't include a

public static int hashCode(object x) { return x == null ? 0 : x.hashCode(); }

that I think was also being asked for, and which might be a candidate
for Objects.


More information about the core-libs-dev mailing list