RFR 8141409 Arrays.equals accepting a Comparator
openjdk at duigou.org
Wed Nov 4 16:51:08 UTC 2015
> Date: Wed, 4 Nov 2015 15:32:25 +0100
> From: Paul Sandoz <paul.sandoz at oracle.com>
> To: core-libs-dev <core-libs-dev at openjdk.java.net>
> Subject: RFR 8141409 Arrays.equals accepting a Comparator
> Please review:
> In addition i added an Objects.compare method, which simplifies the
> implementations of some object-bearing methods.
Why not put the method on Comparable?
The null handling choice seems arbitrary. Nulls last or nulls disallowed
would be equally valid. As usual I favour nulls disallowed.
More information about the core-libs-dev