I'm developing a system where widgets listen for changes in some model. I wanted to notify widgets over an interface parametrized with notification's class. Why doesn't Java allow this:
public class UiInventory extends Widget implements
Observer<EventGetItem>,
Observer<EventLoseItem>,
Observer<EventWield>,
Observer<EventUnwield>,
Observer<EventPutOn>,
Observer<EventTakeOff> {
The error message is simply Duplicate class: 'my.package.structure.Observer', but why does it appear in the first place?