I love Generics
I have a class called Request like this:
abstractclass Request<T>{
publicabstract T execute();
}
and I have a class called Response:
abstractclass Response{
// class body
}
The Request class here is generified, but with some type 'T' which can be anything, but I want to specify that 'T' as something that extends this "Response" class. I want something like this:
abstractclass Request<?extends Response>{
}
as I was typing this suddenly I got an idea and I went back to my code and tried this:
abstractclass Request<Textends Response>{
}
and it solved my purpose, this syntax is so intuitive.. Generics rocks...
-- Srikanth

