Reputation: 35276
I've been trying to figure out how to determinate the classname of a generic type at runtime, but maybe I need to rephrase my thinking regarding this.
For example I have:
Map<String,Integer> map = new PersistentHashMap<String,Integer>();
Will I be able to retrieve the classnames java.lang.String
and java.lang.Integer
from the PersistentHashMap
for example?
Upvotes: 0
Views: 67