Is there a way to define a generic constraint in Java which would be analogous to the following C# generic constratint ?
class Class1<I,T> where I : Interface1, Class2 : I
I'm trying to do it like this:
class Class1<I extends Interface1, T extands I & Class2>
But the compiler complains about the "Class2" part: Type parameter cannot be followed by other bounds.