Skip to main content

Concrete Generics

  • From: Werner Keil < >
  • To: " " < >
  • Subject: Concrete Generics
  • Date: Fri, 17 Oct 2014 18:22:25 +0200

Hi,

I won't push that change for now, but just to let you know, what worked for
Quantity also works the same way with Unit, e.g.

<R extends Unit<S>, S extends Quantity<S>, T extends Quantity<T>> Unit<S>
multiply(Unit<T> that);
instead of
Unit<?> multiply(Unit<?> that);

The SE 8 related fix of addUnit() in AbstractUnitOfMeasurement just went
into Git. It works better with type system changes of Java 8 now[?]

Regards,
Werner

Attachment: 347.gif
Description: GIF image



Concrete Generics

Werner Keil 10/17/2014

Re: Concrete Generics

Martin Desruisseaux 10/18/2014

Re: Concrete Generics

Werner Keil 10/18/2014

Re: Concrete Generics

Martin Desruisseaux 10/18/2014

Re: Concrete Generics

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