K
Koen
I have this Map
private Map<Class<? extends IBusinessRule>, Collection<? extends
IBusinessRule>> businessRules;
where IBusinessRule is an interface, but what I actually want is
something like this
private <T extends IBusinessRule> Map<Class<T>, Collection<T>>
businessRules;
This is a map from the Class of an object to a Collection of objects
with exactly that type.
Is this possible? I can not figure out how to do that.
Koen
private Map<Class<? extends IBusinessRule>, Collection<? extends
IBusinessRule>> businessRules;
where IBusinessRule is an interface, but what I actually want is
something like this
private <T extends IBusinessRule> Map<Class<T>, Collection<T>>
businessRules;
This is a map from the Class of an object to a Collection of objects
with exactly that type.
Is this possible? I can not figure out how to do that.
Koen