摘要:
(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 阅读全文
摘要:
(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 阅读全文
摘要:
(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, 阅读全文
摘要:
(Builder Pattern) Separating the creation of a complex object from its representation makes the same creation process have different representations, 阅读全文
摘要:
(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 阅读全文
摘要:
(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 阅读全文
摘要:
(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 阅读全文
摘要:
深度拷贝带随机指针的链表(Copy List with Random Pointer) 创建一个新对象,然后将当前对象的非静态字段复制到该新对象,无论该字段是值类型的还是引用类型,都复制独立的一份。当你修改其中一个对象的任何内容时,都不会影响另一个对象的内容,这是对java类深拷贝的描述。实际上就是 阅读全文