Possible Duplicate:
What are the reasons why Map.get(Object key) is not (fully) generic
Why for Map<K,V>
, the get()
is defined with an Object parameter:
V get(Object key)
and not a generic paramter:
V get(K key)
?
Possible Duplicate:
What are the reasons why Map.get(Object key) is not (fully) generic
Why for Map<K,V>
, the get()
is defined with an Object parameter:
V get(Object key)
and not a generic paramter:
V get(K key)
?