public void SetSuccessor(Handler successor) { this.successor = successor; }
public void SetSuccessor(Handler handler) { this.successor = handler; }
public void SetNextHandler(Handler nextHandler) { this.nextHandler = nextHandler; }
public void setSuccessor(Handler successor) { //链的关键在于这里把下一个节点设置成继承者 this.successor = successor; Console.WriteLine($"[Handler赋值]:{successor}"); }