What methods should go into a java.util.Objects class in JDK 7?
martinrb at google.com
Thu Sep 10 00:04:10 UTC 2009
Google would like to contribute implementations of the methods below.
Here's a webrev:
We have tests (not yet included) but they would need to be jtreg-ified.
Is there any junit support yet for jtreg?
On Wed, Sep 9, 2009 at 16:54, Stephen Colebourne<scolebourne at joda.org> wrote:
> 2009/9/9 Joe Darcy <Joe.Darcy at sun.com>:
> The following are missing methods on Integer/Long:
> 7) Compare two primitives.
> int Byte.compare(byte value1, byte value2)
> int Short.compare(short value1, short value2)
> int Integer.compare(int value1, int value2)
> int Long.compare(long value1, long value2)
> Safely returns the comparison (-1/0/1) indicator for two primitives.
> (These methods already exist on Float/Double).
More information about the core-libs-dev