Java generic for integrator/propagator builders

Hi folks,

just wondering why we don’t use Java generic for AbstractIntegratorBuilder and AbstractPropagatorBuilder in their respective “build” method. It would lift the need for casting by users in some cases.

Cheers,
Romain.

1 Like

+1

It would really be usefull for the clone() method of AbstractPropagatorBuilder. So, I think generic type shall be at the class level and not just for the build() method
This change shall be done during a major release.

Bryan

Maybe.
I am more and more worried about generics in Java, it often opens a can of worms.

I think for builders it makes a lot of sense. I agree that for other stuffs it can sometimes be more of a pain than anything else