Use Advanced Search to search the entire archive.
[jsr363-experts] Re: Quantity.doubleValue(...) ?
- From: Leonardo Lima <
>
- To: "
" <
>
- Subject: [jsr363-experts] Re: Quantity.doubleValue(...) ?
- Date: Tue, 16 Dec 2014 07:37:57 -0200
I think doubleValue has some use if we think that in the end, all method
calls that return a Number will be 1) autounboxed to a double when cast to
Double or 2) have a .doubleValue() right next to it.
So the doubleValue() would make the user's code clearer to read, I believe.
Martin, I think we can leave it in the Spec even if it's not in the current
API (as this is EDR, we can add and remove stuff later on as well).
Regards,
Leonardo.
On Tue, Dec 16, 2014 at 3:23 AM, Martin Desruisseaux <
>
wrote:
>
>
Le 15/12/14 20:14, Werner Keil a écrit :
>
> so should there be a case where getValue() of a Quantity would be
>
> null, what should a parallel doubleValue() then return?;-O
>
>
Double.NaN.
>
>
But anyway I'm not pushing for a doubleValue() method. Just trying to
>
fix inconsistencies between the spec and current API.
>
>
Martin
>
>