Hi,
> I have this Map
>
[quoted text clipped - 11 lines]
>
> Is this possible?
Yes, it is. But T has to be defined in the class or method:
class X<T extends IBusinessRule> {
private Map<Class<T>, Collection<T>> businessRules;
}
or
class X {
public <T extends IBusinessRule> void foo(Map<Class<T>,
Collection<T>> businessRules) {
...
}
}
Hth,
Ingo
Koen - 10 May 2006 15:16 GMT
Ok, I understand, but I forgot to mention that this map businessRules is
a static field...
Koen
> Hi,
>
[quoted text clipped - 31 lines]
> Hth,
> Ingo
Ingo R. Homann - 10 May 2006 15:36 GMT
Hi,
> Ok, I understand, but I forgot to mention that this map businessRules is
> a static field...
Then, it is impossible. If it where possible - how/where would you like
to define it? (The fact that you cannot answer this question is the
reason why it is impossible! :-)
Ciao,
Ingo