Skip to main content

Re: Add five methods in Quantity interface[Proposal]

  • From: Otávio Gonçalves de Santana < >
  • To:
  • Subject: Re: Add five methods in Quantity interface[Proposal]
  • Date: Sat, 1 Nov 2014 10:28:41 -0200

How is fast to do it, I did:


   - https://github.com/unitsofmeasurement/unit-impl-se/pull/41
   - https://github.com/unitsofmeasurement/unit-api/pull/23


How you can see, just added these methods without another impacts in API.

On Sat, Nov 1, 2014 at 9:36 AM, Werner Keil 
< >
 wrote:

> No, our implementing classes do;-)
> The API should allow Enum implementations, so on API level (I believe
> MonetaryAmount extends it) it is a no-go, but implementing classes do.
>
> JSR 310 alone consists of over 100 classes;-D
> Am 01.11.2014 12:09 schrieb "Martin Desruisseaux" <
>  >:
>
> Le 01/11/14 19:57, Werner Keil a écrit :
>> >
>> > I remember most of them already do;-)
>> >
>> You mean do not implement Comparable? LocalTime does implement
>> Comparable, as LocalDate, Date, and more than 100 other classes in the
>> JDK.
>>
>> I'm not pushing for implementing Comparable or not - I'm hesitant on
>> that one and could be convinced either way. But I don't think that
>> providing 'isGreater' methods without implementing Comparable is
>> consistent, and I'm not aware of a JDK API doing that. Do you know some?
>>
>>     Martin
>>
>>


-- 
Otávio Gonçalves de Santana

blog:     http://otaviosantana.blogspot.com.br/
twitter: http://twitter.com/otaviojava
site:     *http://about.me/otaviojava ;<http://about.me/otaviojava>*
55 (11) 98255-3513


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

Re: Add five methods in Quantity interface[Proposal]

Werner Keil 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Werner Keil 11/01/2014

Re: Add five methods in Quantity interface[Proposal]

Werner Keil 11/01/2014
 
 
Close
loading
Please Confirm
Close