Skip to main content

Re: Proposal

  • From: Martin Desruisseaux < >
  • To:
  • Subject: Re: Proposal
  • Date: Mon, 03 Nov 2014 10:51:41 +0900
  • Organization: Geomatys

Le 03/11/14 09:31, Otávio Gonçalves de Santana a écrit :
> The method asType should exist just when you do some operation like
> divide or multiply or inverse.
>
> Quantity<Length> metre = Quantities.getQuantity(BigDecimal.TEN, SI.METRE);
> Quantity<Length> metre2 = metre.asType(Lenght.class);//semantic problem

It is not a semantic problem. It is just a no-op. Exactly in the same
way as:

    Class<String> s1 = String.class;
    Class<String> s2 = s1.asSubclass(String.class);

is a no-op.

    Martin



Re: Proposal

(continued)

Re: Proposal

Martin Desruisseaux 11/02/2014

Re: Proposal

Werner Keil 11/02/2014

Re: Proposal

Jean-Marie Dautelle 11/02/2014

Re: Proposal

Jean-Marie Dautelle 11/02/2014

Re: Proposal

Werner Keil 11/02/2014

Re: Proposal

Jean-Marie Dautelle 11/02/2014

Re: Proposal

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

Re: Proposal

Werner Keil 11/02/2014

Re: Proposal

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

Re: Proposal

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

Re: Proposal

Martin Desruisseaux 11/03/2014

Re: Proposal

Martin Desruisseaux 11/03/2014

Re: Proposal

Martin Desruisseaux 11/03/2014

Re: Proposal

Werner Keil 11/03/2014

Re: Proposal

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

Re: Proposal

Martin Desruisseaux 11/17/2014

Re: Proposal

Werner Keil 11/17/2014

Re: Proposal

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

Re: Proposal

Werner Keil 11/17/2014

Re: Proposal

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

Re: Proposal

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