K
kelvSYC
Suppose I have a class Foo, which has subclasses Foo1 and Foo2. Now,
suppose I need a map whose key type is Class<T extends Foo> and whose
value type is Set<T> (that is, if the key type is Foo1.class, then the
value type is Set<Foo1>).
Is it even possible to declare such a type using generics or do I have
to do something in a roundabout way?
suppose I need a map whose key type is Class<T extends Foo> and whose
value type is Set<T> (that is, if the key type is Foo1.class, then the
value type is Set<Foo1>).
Is it even possible to declare such a type using generics or do I have
to do something in a roundabout way?