Is there a way to define a generic constraint in Java which would be analogous to the following C# generic constratint ?
class Class1 where I : Interf
This code compiles here fine:
interface Interface1 {} class Class2 {} class Class1 {}
Why do you need the I type there when you assume only Interface1 anyway? (you won't know anything more in your class about I than it extends Interface1)