Re: TypeVariable problems

2016-05-02 Thread Martin Neumann
Hi Aljosha Thanks for your answer! I tried using returns but it does not work since the only place where I could call it is within the function that has all the generic types so there is no useful type hint to give. I could make the user hand over the class definition for the type as well but that

Re: TypeVariable problems

2016-05-02 Thread Aljoscha Krettek
Hi, for user functions that have generics, such as you have, you have to manually specify the types somehow. This can either be done using InputTypeConfigurable/OutputTypeConfigurable or maybe using stream.returns(). Cheers, Aljoscha On Fri, 29 Apr 2016 at 12:25 Martin Neumann wrote: > Hej, > >

Fwd: TypeVariable problems

2016-04-29 Thread Martin Neumann
Hej, I have a construct of different generic classes stacked on each other to create a library (so the type variables get handed on). And I have some trouble getting it to work. The current offender is a Class with 3 type variables internally it calls: .fold(new Tuple3<>(keyInit ,new Tuple2(0d,0