0
Отклонено

better class diagram for chain of responsibility pattern

Amir Mohammad 4 года назад обновлен anonymous 4 года назад 3
hi everybody
i think the following class diagram would be a better representation of Chain of Responsibility pattern.
На рассмотрении

Hi! Why do you think it's better?

Hi


You should replace:


    nextHandler.handle();

by


    if (isDefined(nextHandler))
        nextHandler.handle();
Отклонено

I'm closing this for now, because it seems that current illustration does contain simple "isDefined" and "canHandle" checks:


Сервис поддержки клиентов работает на платформе UserEcho