Equality

Doug Lea dl at cs.oswego.edu
Tue Dec 22 14:18:41 UTC 2015


I should have noted...

On 12/21/2015 05:33 PM, John Rose wrote:
> On Dec 21, 2015, at 8:50 AM, Doug Lea <dl at cs.oswego.edu> wrote:

>> And, as John almost noted, compareTo/Comparable needs
>> treatment similar to my hybrid version of equals.
>

Well, "needs" is too strong. It would be disappointing
if values could not be Comparable, but all java.util APIs
related to sorted-orders allow a separate Comparator,
so would still be usable.

-Doug




More information about the valhalla-spec-experts mailing list