I have a Map whose keys are of generic type Key, and values are of type List. If the key is an instance of Key
Map
Key
List
This is what you want:
public class Test extends HashMap> { }
If you don't want a HashMap as the super class then change it to whatever concrete class you want.