Skip to main content

Re: Add five methods in Quantity interface[Proposal]

  • From: Martin Desruisseaux < >
  • To:
  • Subject: Re: Add five methods in Quantity interface[Proposal]
  • Date: Sat, 01 Nov 2014 11:56:31 +0900
  • Organization: Geomatys

Le 01/11/14 04:36, Otávio Gonçalves de Santana a écrit :
> I would like to propose to add four new comparatives methods in
> Quantity interface:
>
>   *   boolean isGreaterThan(Quantity<T> quantity);
>   *   boolean isGreaterThanOrEqualTo(Quantity<T> quantity);
>   *   boolean isLessThan(Quantity<T> quantity);
>   *   boolean isLessThanOrEqualTo(Quantity<T> quantity);
>   *   boolean isEquivalentTo(Quantity<T> quantity);
>
Why not just implement the int compareTo(Quantity<Q>) method that we
could inherit from the Comparable interface instead? But I agree with
Werner, we need to sort out the Measurement - Quantity relationship first.

    Martin



Re: Add five methods in Quantity interface[Proposal]

Otávio Gonçalves de Santana 11/01/2014

<Possible follow-up(s)>

Re: Add five methods in Quantity interface[Proposal]

Martin Desruisseaux 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Otávio Gonçalves de Santana 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Martin Desruisseaux 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Otávio Gonçalves de Santana 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Martin Desruisseaux 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Otávio Gonçalves de Santana 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Werner Keil 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Martin Desruisseaux 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Werner Keil 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Otávio Gonçalves de Santana 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Martin Desruisseaux 11/01/2014
 
 
Close
loading
Please Confirm
Close