摘要:
职责链模式的作用在于职责转移,其实现实际上是一个链表package chainofres;public abstract class Handler { protected Handler successor; public abstract void action(int request); public void setSuccessor(Handler successor) { this.successor = successor; } }package chainofres;public class ConcurrentHandler... 阅读全文