What methods should go into a java.util.Objects class in JDK 7?
Rémi Forax
forax at univ-mlv.fr
Thu Sep 10 00:54:13 UTC 2009
Le 10/09/2009 02:15, Martin Buchholz a écrit :
> Here's a bunch of static hashCode methods for primitives:
>
> http://cr.openjdk.java.net/~martin/webrevs/openjdk7/hashCode/
>
> 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.
>
> Martin
>
Martin,
You forget java.lang.Boolean in your patch set :)
Rémi
More information about the core-libs-dev
mailing list