implements GenericObserver<DataService, Tools>, GenericObserver<MobileService, Tools>
cannot be implemented more than once with different arguments.
This is my interface:
public interface GenericObserver<S, D> {
void update(S sender, D data);
}
What can I do? I need DataService and MobileService.
I try to use generic T instead of DataService and MobileService but I get an error that T does not exist.
One possibility:
The Visitor pattern is another possibility (
GenericObserverbeing the visitable).