Re: [android-developers] Java Generics question (Using AsyncTask)...

2011-06-15 Thread luciofm
Thanks for the response... I've just saw it today... this is my class declaration public class AsyncRequestT extends AsyncTaskObject, Void, AsyncResponseT { using getTypeParameters TypeVariable?[] types = getClass().getTypeParameters(); types[0].getBounds()[0] is a class

Re: [android-developers] Java Generics question (Using AsyncTask)...

2011-06-10 Thread Nikolay Elenkov
On Thu, Jun 9, 2011 at 9:31 AM, luciofm luci...@gmail.com wrote: In this case, with getSuperclassTypeParameter() I get the parameterized types of AsyncTask, and not of my own Class AsyncRequest... (parameterized.getActualTypeArguments()[0] is a String type). That's the way

[android-developers] Java Generics question (Using AsyncTask)...

2011-06-09 Thread luciofm
Hi, I'm having some troubles with generics, trying to get the Type of my Parameterized class??? Let's begin with a working example... class TestClassT { Type type; public TestClass() { type = getSuperclassTypeParameter(getClass()); } static Type