Use Advanced Search to search the entire archive.
[jsr363-experts] Re: Remove > in QuantityFactory
- From: Otávio Gonçalves de Santana <
>
- To:
- Subject: [jsr363-experts] Re: Remove <N extends Number,U extends Unit<Q>> in QuantityFactory
- Date: Sat, 13 Dec 2014 14:26:55 -0200
This way is really better, please go a head.
On Dec 13, 2014 12:26 PM, "Werner Keil"
<
>
wrote:
>
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
>
>
>
>