I am trying to define HashMap< ? , String> where ? is a class object from some implementation of a given interface, P.
For example, for interface ISearchEngine, i want ? to possibly be Google.class, Yahoo.class, Bing.class, etc.
I am trying to define HashMap< ? , String> where ? is a class object from some implementation of a given interface, P.
For example, for interface ISearchEngine, i want ? to possibly be Google.class, Yahoo.class, Bing.class, etc.