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

Ulf Zibis Ulf.Zibis at gmx.de
Thu Sep 10 09:58:24 UTC 2009


Am 10.09.2009 02:15, Martin Buchholz schrieb:
> Here's a bunch of static hashCode methods for primitives:
>
> http://cr.openjdk.java.net/~martin/webrevs/openjdk7/hashCode/
>   

Can't this be solved by extending auto-boxing capabilities? :
    long l = 1234567890;
    int hash = l.hashCode();

-Ulf






More information about the core-libs-dev mailing list