摘要:
#### ``` Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which is operators. 代表对... 阅读全文
摘要:
public class Decorator { / 装饰者模式: Attach additional responsibility to an object dynamically keeping the same interface. Decorators provide a flexible 阅读全文
摘要:
```java
public class SingleTon { /** * 单例模式: * Ensure a class has only one instance,and provide a global point of access to it. * 确保某个类只有一个实例,并提供一个全局访问点来访问该类实例。 */ @Test public void all() ... 阅读全文