0

Possible Duplicate:
How to determine the class of a generic type?
Get generic type of class at runtime
Java Generics: Accessing Generic Type at runtime

For a generic object parameter to a method

void bar(Foo<?> foo) {

}

How can you retrieve of the type of the casted object, i.e. the type of ? ?

Community
  • 1
  • 1
Theodor
  • 5,536
  • 15
  • 41
  • 55

0 Answers0