Skip to main content

[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
>>
>>


[jsr363-experts] Remove <N extends Number,U extends Unit<Q>> in QuantityFactory

Martin Desruisseaux 12/13/2014

[jsr363-experts] Re: Remove <N extends Number,U extends Unit<Q>> in QuantityFactory

Werner Keil 12/13/2014

[jsr363-experts] Re: Remove <N extends Number,U extends Unit<Q>> in QuantityFactory

Otávio Gonçalves de Santana 12/13/2014
 
 
Close
loading
Please Confirm
Close