Use Advanced Search to search the entire archive.
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