Skip to main content

[jsr363-experts] Remove > in QuantityFactory

  • From: Martin Desruisseaux < >
  • To:
  • Subject: [jsr363-experts] Remove <N extends Number,U extends Unit<Q>> in QuantityFactory
  • Date: Sat, 13 Dec 2014 21:24:56 +0900
  • Organization: Geomatys

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