Use Advanced Search to search the entire archive.
[jsr363-experts] Re: Remove > in QuantityFactory
- From: Werner Keil <
>
- To: "
" <
>
- Subject: [jsr363-experts] Re: Remove <N extends Number,U extends Unit<Q>> in QuantityFactory
- Date: Sat, 13 Dec 2014 15:21:12 +0100
Otavio defined that, if he has no problem with it or can tell us a strong
justification, we could change it.
Ideally create a JIRA ticket for it if found worth changing.
Werner
On Sat, Dec 13, 2014 at 1:24 PM, Martin Desruisseaux <
>
wrote:
>
>
In the current QuantityFactory interface, for the following method:
>
>
<N extends Number,U extends Unit<Q>> Quantity<Q> create(N number, U unit)
>
>
The <N extends Number,U extends Unit<Q>> parameterization is useless, as
>
neither the N or U parameter is used in the return type or for
>
parameterization of other parameters. I suggest to simplify the method
>
signature as below (not also the renaming of 'number' as 'value' for
>
consistency with Quantity property names):
>
>
Quantity<Q> create(Number value, Unit<Q> unit)
>
>
Martin
>
>