D
Donna
I've noticed that in the jdk 1.5, the argument for java.util.Map.get()
is Object, rather than the type parameter K. Does anyone know why this
is? I sometimes make a type error and pass to get() something that has
a completely different type, and of course it won't be in the map,
since put() requires that the key have the right type.
is Object, rather than the type parameter K. Does anyone know why this
is? I sometimes make a type error and pass to get() something that has
a completely different type, and of course it won't be in the map,
since put() requires that the key have the right type.