随笔分类 -  设计模式

摘要:(Template Method Pattern) Define a skeleton that allows subclasses to provide implementations for one or more of the steps. In short, the methods of o 阅读全文
posted @ 2021-05-14 13:06 UpGx 阅读(84) 评论(0) 推荐(0)
摘要:Delegate Pattern The basic function is the scheduling and distribution of tasks, separating the assignment and execution of tasks。In short, similar to 阅读全文
posted @ 2021-05-08 11:32 UpGx 阅读(204) 评论(0) 推荐(0)
摘要:Composite Pattern The purpose is to represent individual objects and composite objects with the same interface, so that the client can handle individu 阅读全文
posted @ 2021-05-06 14:01 UpGx 阅读(80) 评论(0) 推荐(0)
摘要:Flyweight Pattern The Enjoyable Element mode is a manifestation of object pooling. Similar to thread pools, you can avoid creating and destroying mult 阅读全文
posted @ 2021-05-05 22:57 UpGx 阅读(92) 评论(0) 推荐(0)
摘要:(Bridge Pattern) Bridge mode is also known as bridge mode and interface mode,It is to separate the abstract part from the concrete implementation part 阅读全文
posted @ 2021-05-01 22:28 UpGx 阅读(350) 评论(0) 推荐(0)
摘要:(Adapter Pattern) Its function is to turn the interface of one class into another interface that the client expects, so that classes that would otherw 阅读全文
posted @ 2021-04-27 22:57 UpGx 阅读(107) 评论(0) 推荐(0)
摘要:(Proxy Pattern) Provide proxies to other objects to control access to this object, with the aim of augmenting other objects, in short, similar to AOP, 阅读全文
posted @ 2021-04-22 18:39 UpGx 阅读(144) 评论(0) 推荐(0)
摘要:(Builder Pattern) Separating the creation of a complex object from its representation makes the same creation process have different representations, 阅读全文
posted @ 2021-04-19 12:36 UpGx 阅读(91) 评论(0) 推荐(0)
摘要:(Prototype Pattern) Creating a new object by copying, the caller does not need to know the creation details, does not call the constructor, is a creat 阅读全文
posted @ 2021-04-15 19:46 UpGx 阅读(80) 评论(0) 推荐(0)
摘要:(Singleton Pattern) Make sure that there is absolutely only one instance of a class in any case, and that a global access point is provided。Sometimes 阅读全文
posted @ 2021-04-12 17:21 UpGx 阅读(133) 评论(0) 推荐(0)
摘要:(factory pattern) Sometimes we may need a lot of code when creating a class, and if we put all this creation logic in a class, it is undoubtedly very 阅读全文
posted @ 2021-04-06 18:15 UpGx 阅读(371) 评论(0) 推荐(0)