Skip to main content

Re: Order of arguments in UnitConverter.concatenate(UnitConverter)

  • From: Werner Keil < >
  • To: " " < >
  • Subject: Re: Order of arguments in UnitConverter.concatenate(UnitConverter)
  • Date: Fri, 5 Sep 2014 23:03:41 +0200

Martin,

Thanks for pointing that out. It was directly derived from the 0.6 API:
http://www.unitsofmeasurement.org/apidocs/org/unitsofmeasurement/unit/UnitConverter.html
but if it makes more sense to change the behavior in implementations for
the new API it is possible.

Ideally it should be governed by some Unit tests, even if  there may not be
so many tests in the old API for that. We'll require a lot of them for a
TCK soon anyway;-)

Regards,
Werner


On Fri, Sep 5, 2014 at 10:22 PM, Martin Desruisseaux <
>
 wrote:

>  Hello all
>
> I just noticed UnitConverter.concatenate(UnitConverter) javadoc, which
> said:
>
> Concatenates this converter with another converter. The resulting
> converter is equivalent to first converting by the specified converter
> (right converter), and then converting by this converter (left converter).
>
> This means that A.concatenate(B) is equivalent to applying *B* first,
> then *A*. Is it the most natural order for peoples? I'm not asking for
> change, I would just like to know if many peoples would have instinctively
> expected *A* to be applied before *B*.
>
>     Martin
>
>


Order of arguments in UnitConverter.concatenate(UnitConverter)

Martin Desruisseaux 09/05/2014

Re: Order of arguments in UnitConverter.concatenate(UnitConverter)

Werner Keil 09/05/2014
 
 
Close
loading
Please Confirm
Close