摘要: ### 中介者模式,又称为调停者模式或调解者模式 1.中介者模式结构图 示例代码 // 抽象中介类 public abstract class Mediator { protected ConcreteColleagueA concreteColleagueA; protected Concrete 阅读全文
posted @ 2021-04-16 23:26 justKen 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 装饰器模式 装饰器模式结构图 示例代码: // 抽象公共类 public abstract class Component { public abstract void work(); } // 具体被装饰对象 public class People extends Component{ @Over 阅读全文
posted @ 2021-04-16 07:46 justKen 阅读(30) 评论(0) 推荐(0) 编辑