Skip to main content

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

  • From: Werner Keil < >
  • To: " " < >
  • Subject: Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory
  • Date: Fri, 31 Oct 2014 17:20:28 +0100

These are minor details, but I created
https://java.net/jira/browse/UNITSOFMEASUREMENT-69 on Jean-Marie's behalf.

Please have a look. It would be awesome to come to a conclusion and be able
to refactor the API before I present the JSR in Casablanca at JMagreb.
Simply to present important terms like *Dimension, Quantity, Measurement *or
*Unit *in the right order and hierarchy.

And as mentioned in the ticket a question, if we supported non-numeric
quantities (like "more", "less" in the Wikipedia definition or "S", "M" or
"L" in real life examples for either clothing sizes or say Agile planning
storypoints, there are certainly many other similar cases) based on a super
type "Quantity" or if it became merely some sort of "tagging interface"
similar to Serializable, except it would still be passed in all generic <Q>
arguments.

If we discouraged the use of quantity to directly implement it (there could
still be concrete sub-types like "Temperature" but returning them e.g. from
a factory or opertion would be worthless, since the vital operations
themselves would be no longer on Quantity but Measurement[?]) both JavaDoc
and the Spec will have to clarify that.

Werner

On Fri, Oct 31, 2014 at 5:01 PM, Martin Desruisseaux <
>
 wrote:

>  Le 01/11/14 00:58, Jean-Marie Dautelle a écrit :
>
>  >It is meant to standardize usage of the value part. If we left ME users
> to die without it and SE users to something weird like
> >getUnit() and
> >get()
>
>  Actually it would be
> getUnit()
> getValue()
> (implementing a functional interface is not necessary nor required).
>
>
> Yes, this is also my point of view.
>
>     Martin
>
>

Attachment: 347.gif
Description: GIF image



Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

(continued)

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Otávio Gonçalves de Santana 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Jean-Marie Dautelle 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Jean-Marie Dautelle 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Jean-Marie Dautelle 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014
 
 
Close
loading
Please Confirm
Close