This content has been marked as final. Show 2 replies
No. Generics are erased at compile time.
stash the class types in the map and use those to do casting (Class.cast), instance testing (Class.isInstance), etc.
public TokyoMap(Class<K> keyClass, Class<V> valueClass)...
Edited by: jtahlborn on Oct 28, 2010 10:04 AM