Jesper de Jong
posted 1 year ago
If you want to use generics in a static method, you must apply the formal type parameters (e.g. K, V, not k,v) to the method. Since the actual type parameters for the class can vary from instance to instance, they must behave like instance fields, and they are not accessible from a static method.