Quantcast
Channel: Java generic List parameter not possible? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Andrzej Doyle for Java generic List parameter not possible?

Riduidel is right in that the problem is that you haven't declared the T anywhere.Depending on what you want to do with the contents of the list, chances are you can just use a wildcard. List<?>...

View Article



Answer by Riduidel for Java generic List parameter not possible?

In that case, the T parameter has to be defined somewhere. As I guess your class does not declares this parameter, you have to put it in your method declaration, likeprivate <T> OnClickListener...

View Article

Java generic List parameter not possible?

i have a simple method that takes a generic List parameter but for some reason my IDE(Eclipse) states how it cannot be resolved?Am i doing something wrong here private OnClickListener...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images