摘要:
博文原址: "折腾Java设计模式之单例模式" 单例模式 Ensure a class has only one instance, and provide a global point of access to it. 一个类仅仅只有一个实例,并且提供全局的接入点。简洁点理解就是涉及到一个单一的类 阅读全文
摘要:
博文原址: "折腾Java设计模式之建造者模式" 建造者模式 Separate the construction of a complex object from its representation, allowing the same construction process to create 阅读全文
摘要:
原文地址: "折腾Java设计模式之备忘录模式" 备忘录模式 Without violating encapsulation, capture and externalize an object's internal state allowing the object to be restored 阅读全文
摘要:
观察者模式 Define a one to many dependency between objects where a state change in one object results in all its dependents being notified and updated auto 阅读全文
摘要:
博客原文地址: "折腾Java设计模式之模板方法模式" 模板方法模式 Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subcl 阅读全文