摘要:
Intent (定义) Decouple an abstraction from its implementation so that the two can vary independently. (从实现中分离出抽象,使两者可以独立变化) Also Known As (别名) Handle/Bo 阅读全文
摘要:
Intent (定义) Convert the interface of a class into another interface clients expect. (将一个接口转换为客户端希望的另一个接口)Adapter lets classes work together that could 阅读全文
摘要:
Intent (定义) Ensure a class only has one instance, and provide a global point of access to it.(确保一个类只有一个实例,并提供全局访问的通道) Motivation (案例) How do we ensure 阅读全文
摘要:
Intent (定义) Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.(指定使用原型实例创建的对象类型,并通 阅读全文
摘要:
Intent (定义) Define an interface for creating an object(定义一个接口去创建对象), but let subclasses decide which class to instantiate.(但是由子类决定哪个类将被实例化) Factory Me 阅读全文
摘要:
Intent (定义) Separate the construction of a complex object from its representation,so that the same construction process can create different represent 阅读全文
摘要:
Intent (定义) Provide an interface for creating families of related or dependent objects without specifying their concrete classes. (提供一个接口去创建相关联或者依赖的对象 阅读全文